_GetNextEvent( ) API Library Routine

See Also   Example

Reads the next event into the EventRec and returns the event type.

Syntax

int _GetNextEvent(EventRec FAR *event)
EventRec FAR
*event;         /* Event. */

Remarks

Null events are generated when no other activity has taken place. Idle routines shouldn't call _GetNextEvent( ). You can call _GetNextEvent( ) from an event handler but you must be careful, because _GetNextEvent( ) calls the event handler recursively.

For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.