T Thraka Member Licensed User Longtime User Aug 9, 2014 #1 Trying to play around and I'm used to how things are done in .NET. So please forgive me if my terminology is wrong. Does B4A have a way to declare, subscribe, and raise custom events from one class to another?
Trying to play around and I'm used to how things are done in .NET. So please forgive me if my terminology is wrong. Does B4A have a way to declare, subscribe, and raise custom events from one class to another?
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2014 #2 You can use CallSub or CallSubDelayed to "raise events". Many classes use this pattern. See this one for example: http://www.b4x.com/android/forum/threads/27548/#content Upvote 0
You can use CallSub or CallSubDelayed to "raise events". Many classes use this pattern. See this one for example: http://www.b4x.com/android/forum/threads/27548/#content
T Thraka Member Licensed User Longtime User Aug 12, 2014 #4 I created a small class that kind of creates a subscribe and unsubscribe system for events: http://www.b4x.com/android/forum/posts/265966/ Upvote 0
I created a small class that kind of creates a subscribe and unsubscribe system for events: http://www.b4x.com/android/forum/posts/265966/