Bug? [B4i] Compilation error - ToCompactString not recognized

GianniGntl

Member
Licensed User
Longtime User
Hi


B4i Version: 8.90
Parsing code. (0.02s)
Building folders structure. (0.05s)
Running custom action. (0.07s)
Compiling code. (0.07s)
Compiling layouts code. (0.00s)
Building Xcode project. (0.22s)

icon-store-1024.png is missing from Files\Special. Using default icon.
Preparing project for builder. (0.08s)
Project size: 0.19 MB
Sending data to remote compiler. Error
B4i line: 29
xui.MsgboxAsync(m.As(JSON).ToCompactString, \
no visible @interface for 'B4IJSONConverter' declares the selector 'ToCompactString'


This is the output searching to compile a small program that invoke ToCompactString form iJson library.
Button1_Click:
Private Sub Button1_Click
    Dim m As Map = CreateMap("One": 1, "Two": 2, "Three": 3)
    xui.MsgboxAsync(m.As(JSON).ToCompactString, "B4X")
End Sub

Same code works correctly under B4A and B4J; also, it runs changing ToCompactString into ToString

As I used the function extensively in another project and also in some b4xlib's, I would like not to update all my written code.

Cheers
 

GianniGntl

Member
Licensed User
Longtime User
Hi


B4i Version: 8.90
Parsing code. (0.02s)
Building folders structure. (0.05s)
Running custom action. (0.07s)
Compiling code. (0.07s)
Compiling layouts code. (0.00s)
Building Xcode project. (0.22s)

icon-store-1024.png is missing from Files\Special. Using default icon.
Preparing project for builder. (0.08s)
Project size: 0.19 MB
Sending data to remote compiler. Error
B4i line: 29
xui.MsgboxAsync(m.As(JSON).ToCompactString, \
no visible @interface for 'B4IJSONConverter' declares the selector 'ToCompactString'


This is the output searching to compile a small program that invoke ToCompactString form iJson library.
Button1_Click:
Private Sub Button1_Click
    Dim m As Map = CreateMap("One": 1, "Two": 2, "Three": 3)
    xui.MsgboxAsync(m.As(JSON).ToCompactString, "B4X")
End Sub

Same code works correctly under B4A and B4J; also, it runs changing ToCompactString into ToString

As I used the function extensively in another project and also in some b4xlib's, I would like not to update all my written code.

Cheers
Addendum: previous version compiler (8.80) worked well.
 
Top