Sign in to follow this  
Followers 0
theguy0000

i get an error...

3 posts in this topic

#1 ·  Posted (edited)

#include <GUIConstants.au3>

GUICreate("---------------")

GUISetFont(9, 300)

$tab=GUICtrlCreateTab (1,1, 400,400)

$tab0=GUICtrlCreateTabitem ("---------------")
GUICtrlSetState(-1,$GUI_SHOW) ; will be display first
$modName=GUICtrlCreateInput ( "", 85, 25, 100, 21)
$modNameLabel=GUICtrlCreateLabel ("MOD name: ",  10, 30, 100)

$tab1=GUICtrlCreateTabitem ( "-----------")

$tab2=GUICtrlCreateTabitem ("l------------")

GUICtrlCreateTabitem ("") ; end tabitem definition

$update=GUICtrlCreateButton ("UPDATE!", 190,350)

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $update Then Call( "update" )
    
    If $msg = $GUI_EVENT_CLOSE Then
        $close = MsgBox(100, "Quit?", "Are you sure you want to close?")
        If $close = 6 Then
            ExitLoop
        ElseIf $close = 7 Then
            Sleep ( "1" )
        EndIf
WEnd

Error: "WEnd" statement with no matching "While" statement.

-----------

how can i fix this?

thanks!

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



Replace the While..WEnd loop above with this one:

While 1
    $msg = GUIGetMsg()
    
    If $msg = $update Then Call( "update" )
    
    If $msg = $GUI_EVENT_CLOSE Then
        $close = MsgBox(100, "Quit?", "Are you sure you want to close?")
        If $close = 6 Then ExitLoop
    EndIf
WEnd

Share this post


Link to post
Share on other sites

great, thanks!


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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