Flippedbeyond
Well-known member
- Joined
- Dec 19, 2008
- Messages
- 198
- Programming Experience
- 1-3
Sub ReloadRoster() Dim Completed As Boolean = False AddHandler OnRosterEnd, Sub() Completed = True AddHandler OnRosterItem, Sub(sender As Object, item As RosterItem) Roster.Add(item) End Sub RequestRoster() Do : Loop Until Completed End Sub
I feel like this is a bad idea, what do you guys think? Basically i just want the sub to complete only after the OnRosterEnd event has fired, if this is a bad idea, any suggestions?