Calling service sub from activity

thedesolatesoul

Expert
Licensed User
Longtime User
Hi,
Is it possible to call a sub in a service from an activity?
I want to set up some data in cumbersome structures and dont want to burden my main activity with it.
If not, should I just add a code module and call the helper functions there to set up global variables in the service.

Also, on pulling data from a service. The service cannot callsub a sub in a code module, but can callsub an activity module?

Thanks.
 

thedesolatesoul

Expert
Licensed User
Longtime User
Hmm...then I misinterpreted this line from the services
Note that it is not possible to use CallSub to access subs of a Code module.

That makes perfect sense then!
Activity contains UI, Service does all background work, Code module does glue logic and interfacing.
Awesome.
Thanks!!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…