J Jaime Benavides New Member Dec 11, 2020 #1 Cheers I need to call a main function that returns a parameter from a service. How do I capture that return value?
Cheers I need to call a main function that returns a parameter from a service. How do I capture that return value?
kisoft Well-Known Member Licensed User Longtime User Dec 12, 2020 #2 You can call CallSubDelayed, CallSubDelayed2 from the Service and pass the parameter. Upvote 0
agraham Expert Licensed User Longtime User Dec 12, 2020 #3 To return a value from the main function you can call back to a Sub in the service with the required value in a parameter and that can complete whatever you were doing. Upvote 0
To return a value from the main function you can call back to a Sub in the service with the required value in a parameter and that can complete whatever you were doing.
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2020 #4 Assuming that the service is already running, you can use CallSub to directly call a sub and receive the returned value. Upvote 0
Assuming that the service is already running, you can use CallSub to directly call a sub and receive the returned value.