Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Which is "better" in a GUI-loop?

$
0
0
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:
[ autoit ]      
#include <GUIConstantsEx.au3> GUICreate("Title goes here") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete()


Or:
[ autoit ]      
#include <GUIConstantsEx.au3> GUICreate("Title goes here") GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete()

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>