SYSEVENTAVAILABLE()
Description
See if a low level system event (such as a pen or key event) is available. A use of this function is to use it as a way to let the user signal to interrupt a continuous screen display. For example, the sample program "digiclock" continuously redisplays the screen with the latest time-of-day. In the screen display routine, the SysEventAvailable routine is used to test if the user has tapped the screen and if so, the display routine is terminated. Returns 1 if there is an system event pending and 0 if there are no system events pending. See GetEventType and GetKey for more information on event handling.
Example
If SysEventAvailable()=1 then goto quitDisplay