Jump to content

i get an error...


Recommended Posts

#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

Link to comment
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
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...