Wish - Proper sub calls

DeerBear

Member
Licensed User
Longtime User
Hello!

Just tried to do the following:

MyService.MySub

Doesn't work. Only lists variables.

Tried:
B4X:
BooksService.AddEntry(AnEntry )
BookService.SaveEntry

Works:
B4X:
CallSub2( BooksService,"AddEntry",AnEntry )
CallSub( BooksService,"SaveEntry" )

Please provide proper calls

A
 

DeerBear

Member
Licensed User
Longtime User
Oh, and it CAN BE DONE

Hey!

Before anyone comes up with the brilliant idea of telling me to RTFM
this is "relatively" easy to do if you have an analyzer, which you have
otherwise you can't provide intellisense.
Simple as that.

Thus, when compiling, if nothing else works for this, you can change the proper call(MyService.MySub) into a CallSub(MyService,"MySub") transparently.

The only thing I am a bit doubtful about is how debug would work in this
respect, but I am sure you can work out a good solution

Thanks!

A
 

DeerBear

Member
Licensed User
Longtime User
Tsk!

As I stated in my post, I thought about the possibility
there would be a technical reason for that, which is why I
suggested you took the "automagic" route translating it

I am also 99% sure that it can be translated transparently
from Ugly Duckling to Swan without having me curse because I
mistyped it and then Android complains that I have writte b.s.

A
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…