Sign in to follow this  
Followers 0
CyberFunk Productions

While loop not there?

4 posts in this topic

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
...

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

LMAO, wow, dumb mistake, thanks for the help.

Share this post


Link to post
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
Sign in to follow this  
Followers 0