Hi, is there any possibility to store events subs in a code module, hence to be accessible to all activities?
For example, I have a socket object declared in the main, and it is used to temporarily connect to a device that only accepts sockets, from different activities, depending on the application's stage. I am finishing other activities so, I need to place the socket_connected sub in a place accessible by all activities. I have tried a lot of things, but with no luck. Also, have searched the forum, but did not find a specific solution.
For example, I have a socket object declared in the main, and it is used to temporarily connect to a device that only accepts sockets, from different activities, depending on the application's stage. I am finishing other activities so, I need to place the socket_connected sub in a place accessible by all activities. I have tried a lot of things, but with no luck. Also, have searched the forum, but did not find a specific solution.