Jump to content

While loop not there?


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...