select ...end select

BlitzMax Forums/BlitzMax Beginners Area/select ...end select

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

You can separate OR conditions using commas...

Select EventID()

Case EVENT_WINDOWCLOSE, EVENT_APPTERMINATE

End

Default

DebugLog CurrentEvent.ToString$()

EndSelect


This will end the program if either a window is closed, or the X is clicked on a game graphics window.