Android Question What is the correct way to call this sub?

GuyBooth

Active Member
Licensed User
Longtime User
I have a service called MTO_Run.
It "owns" a class called CalCheck, which has a public sub called "Checkit"
From my Main program, I can run Checkit with the code
B4X:
MTO_Run.CalCheck.Checkit(Parameter1, Parameter2)

But I want to call it with a SubDelayed call. What is the correct way to do it?
This doesn't work:
B4X:
CallSubDelayed3(MTO_Run, "CalCheck.Checkit", Parameter1, Parameter2)

Do I have to set up a sub in MTO_Run to then call the sub in the CalCheck class?
Or am I missing something simple (it wouldn't be the first time … :) )
 
Top