Function LastAppEvent() Foundation
Determines the last event removed from the event queue.
LastAppEvent( [@mp1], [@mp2], [@oXbp], [<nThreadID>] ) --> nEvent
The return value of LastAppEvent() is a numeric code identifying the last event removed from the queue. Generally, these are events generated by keyboard or mouse activity. The #include file Appevent.ch contains #define constants for the integer numeric event codes.
The function LastAppEvent() provides the last event code read from the queue using AppEvent(). If the optional parameters <mp1>, <mp2> and <oXbp> are included, they will be filled with the values of the message parameters and, if available, the Xbase Part corresponding to the last event taken from the queue. The three parameters have the same meaning as they do with the function AppEvent() (see the section on the function AppEvent()).
When a program runs in multiple threads, each thread has its own event queue. By specifying the corresponding thread ID, it is possible to obtain the last event taken from the event queue of a particular thread.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.