I'm using Sswift's nifty little event system: http://www.blitzbasic.com/codearcs/codearcs.php?code=632
Question... how do you kill an active event before it expires?
Example:
Create an event-
Newevent.event(5,MilliSecs(),MilliSecs()+5000)
To kill it the only way I see, at the moment, is to cycle through all of the events, find it then kill it:
For ThisEvent.event = Each event
If ThisEvent\event_type = 5 Then Delete ThisEvent
Next
Is there a more efficient way?
Question... how do you kill an active event before it expires?
Example:
Create an event-
Newevent.event(5,MilliSecs(),MilliSecs()+5000)
To kill it the only way I see, at the moment, is to cycle through all of the events, find it then kill it:
For ThisEvent.event = Each event
If ThisEvent\event_type = 5 Then Delete ThisEvent
Next
Is there a more efficient way?