If i remember corectly, the select-statement came later, chronologicly so i've allways used while...If in all my GUI's.
Which is the prefered alternative out there, are there any drawbacks with either of the following GUI's?
Either:
#include <GUIConstantsEx.au3>
GUICreate("Title goes here")
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
GUIDelete()
Or:
#include <GUIConstantsEx.au3>
GUICreate("Title goes here")
GUISetState()
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()