CyberFunk Productions Posted June 16, 2005 Posted June 16, 2005 i get an error when i run this program that says there is now while for the Wend but there is. Here is the code #include <GUIConstants.au3> #include <Array.au3> #Controls GUICreate("My GUI", 600, 350) $exitButton = GUICtrlCreateButton("Exit", 256, 304, 80, 30) $findButton = GUICtrlCreateButton("Find", 32, 28, 80, 30) $element = GUICtrlCreateinput("", 120, 28, 100, 30) GUISetState (@SW_SHOW) Running() Func Running() While 1 $msg = GUIGetMsg() Select Case $msg = $exitButton Exit Case $msg = $findButton Find() End Select Wend EndFunc ...
GaryFrost Posted June 16, 2005 Posted June 16, 2005 take the space out of "End Select" should be EndSelect SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
OldGuyWalking Posted June 16, 2005 Posted June 16, 2005 i get an error when i run this program that says there is now while for the Wend but there is. Here is the code#include <GUIConstants.au3> #include <Array.au3> #Controls GUICreate("My GUI", 600, 350) $exitButton = GUICtrlCreateButton("Exit", 256, 304, 80, 30) $findButton = GUICtrlCreateButton("Find", 32, 28, 80, 30) $element = GUICtrlCreateinput("", 120, 28, 100, 30) GUISetState (@SW_SHOW) Running() Func Running() While 1 $msg = GUIGetMsg() Select Case $msg = $exitButton Exit Case $msg = $findButton Find() End Select Wend EndFunc ...<{POST_SNAPBACK}>Try it with EndSelect (without the space)
CyberFunk Productions Posted June 16, 2005 Author Posted June 16, 2005 LMAO, wow, dumb mistake, thanks for the help.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now