showing service results

rkmoray

Active Member
Licensed User
Longtime User
I am running sms in a service and it works(yay).
I need to get the results (from,body) back to the mainwindow for processing.

How can I some help on how to return the values form the service.

Thanks
 
You can store the value in a process global variable and then fetch it from the activity. You can also call CallSub to call a sub in the activity. However it will only work if the activity is currently active.
The best solution is to store the data in a process global variable and use CallSub to notify the activity. You should also read the data in Activity_Resume. This way, if the activity is currently paused the data will be handled when it resumes.
 
Upvote 0
Back
Top