Event Queue question
Posted: Thu Jun 24, 2004 11:51 am
I've done some research and I'm wondering if there is any way I can do what I'm trying to accomplish.
I have an event within the RH macro that needs to run until another event fires. At this time, it should end and process the pending event queue. My problem is, since it itself is an event, I'd recursively be actuating a /doevents call. This is bad.
What I could use/need is a way to interrogate the event queue to see if a pending event exists; if so, I could then terminate the current event which would return control back to the main loop body, which would eventually process the event via /doevents.
I guess what I'm looking for is a Top Level Object like "EventQueue" with at least one member "Count." I guess this could be expanded upon to allow for examining what exists in the queue also, but I'd find it at least useful to see if any events are at least queued up.
Thanks!
I have an event within the RH macro that needs to run until another event fires. At this time, it should end and process the pending event queue. My problem is, since it itself is an event, I'd recursively be actuating a /doevents call. This is bad.
What I could use/need is a way to interrogate the event queue to see if a pending event exists; if so, I could then terminate the current event which would return control back to the main loop body, which would eventually process the event via /doevents.
I guess what I'm looking for is a Top Level Object like "EventQueue" with at least one member "Count." I guess this could be expanded upon to allow for examining what exists in the queue also, but I'd find it at least useful to see if any events are at least queued up.
Thanks!