Steve Piehl Member Licensed User Longtime User Nov 23, 2016 #1 I am sure this is probably something simple...but I can't seem to figure out what I am doing wrong. The problem is probably declaration related...in my opinion. I am in a separate service module and I would like to call a sub routine from the Main module. Is this possible? I am getting an unknown member error in the pre-compile logs. I am attempting to reference a sub like Main.NameofSubRoutineHere Can this type of reference work from a service module?
I am sure this is probably something simple...but I can't seem to figure out what I am doing wrong. The problem is probably declaration related...in my opinion. I am in a separate service module and I would like to call a sub routine from the Main module. Is this possible? I am getting an unknown member error in the pre-compile logs. I am attempting to reference a sub like Main.NameofSubRoutineHere Can this type of reference work from a service module?
M Mahares Expert Licensed User Longtime User Nov 23, 2016 #2 you can do this: Code: Copy Callsub(Main,"NameofSubRoutineHere") Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2016 #3 Check this tutorial: https://www.b4x.com/android/forum/threads/18691/#content Upvote 0