D DeerBear Member Licensed User Longtime User Jul 1, 2012 #1 Hello! Just tried to do the following: MyService.MySub Doesn't work. Only lists variables. Tried: Code: Copy BooksService.AddEntry(AnEntry ) BookService.SaveEntry Works: Code: Copy CallSub2( BooksService,"AddEntry",AnEntry ) CallSub( BooksService,"SaveEntry" ) Please provide proper calls A
Hello! Just tried to do the following: MyService.MySub Doesn't work. Only lists variables. Tried: Code: Copy BooksService.AddEntry(AnEntry ) BookService.SaveEntry Works: Code: Copy CallSub2( BooksService,"AddEntry",AnEntry ) CallSub( BooksService,"SaveEntry" ) Please provide proper calls A
D DeerBear Member Licensed User Longtime User Jul 1, 2012 #2 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2012 #3 There is a reason why you cannot directly call other services and activities subs. You should RTFM For classes and code modules you can directly call the public subs.
There is a reason why you cannot directly call other services and activities subs. You should RTFM For classes and code modules you can directly call the public subs.
D DeerBear Member Licensed User Longtime User Jul 1, 2012 #4 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2012 #5 But it is a technical reason which you as the developer should be aware of. I agree that adding an autocomplete feature will be nice.
But it is a technical reason which you as the developer should be aware of. I agree that adding an autocomplete feature will be nice.