CyberFunk Productions Posted June 16, 2005 Share 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 ... Link to comment Share on other sites More sharing options...
GaryFrost Posted June 16, 2005 Share 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. Link to comment Share on other sites More sharing options...
OldGuyWalking Posted June 16, 2005 Share 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) Link to comment Share on other sites More sharing options...
CyberFunk Productions Posted June 16, 2005 Author Share Posted June 16, 2005 LMAO, wow, dumb mistake, thanks for the help. Link to comment Share on other sites More sharing options...
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