Hello all,
It is very possible for my problem to have a very simple solution, but I did not find anything searching the forum, so I apologize in advance if this is the case.
The functionality of my application is split in code modules. So for example I have a GPS code module that offers a asynchronous service for getting the current location. The service is used by other code modules, like for example the smsParser. I would like to call for example from smsParser module the Gps_Start() function in the Gps module sending as parameter the name of a callback residing in smsParser module. This callback should be called when Gps process of determining current location is finished.
I thought I could just pass the name of the callback to the Gps_Start() sub as string and then use CallSub() from Gps module when location is determined, but the comments of the CallSub function states: 'Note that it is not possible to call subs of code modules'.
I appreciate any ideas that you have.
Thank you.
It is very possible for my problem to have a very simple solution, but I did not find anything searching the forum, so I apologize in advance if this is the case.
The functionality of my application is split in code modules. So for example I have a GPS code module that offers a asynchronous service for getting the current location. The service is used by other code modules, like for example the smsParser. I would like to call for example from smsParser module the Gps_Start() function in the Gps module sending as parameter the name of a callback residing in smsParser module. This callback should be called when Gps process of determining current location is finished.
I thought I could just pass the name of the callback to the Gps_Start() sub as string and then use CallSub() from Gps module when location is determined, but the comments of the CallSub function states: 'Note that it is not possible to call subs of code modules'.
I appreciate any ideas that you have.
Thank you.