This function clears all events.
CreateButton(1,10,10,110,110) CreateButton(2,130,130,230,230) CreateKeyDown(1,"ESC") ClearEvents End Label(SIZEWINDOW) Return Label(ONJOYFIRE1) Return Label(CLOSEWINDOW) ReturnThe above code defines some events and calls
ClearEvents(). This function will now clear the following events: Button 1, Button 2 and Keydown 1. The events SIZEWINDOW, ONJOYFIRE1 and CLOSEWINDOW will not be cleared because they are only declared as labels. If you want to get rid of them, you can disable them.