Jump to content

Variable used without being declared


Docfxit
 Share

Recommended Posts

I'm getting an error saying "Variable used without being declared"

Posted Image

File MsgBox.au3

#include <GUIConstantsEx.au3>
GuiCreate("My Debug MsgBox", 200, 300, @DesktopWidth - 220, @DesktopHeight - 340, -1, $WS_EX_TOPMOST)
GuiCtrlCreateLabel("Result of testing:", 10, 10, 180, 20)
$Result = GuiCtrlCreateEdit("", 10, 40, 180, 180)
$OK = GUICtrlCreateButton('OK', 50, 250, 100, 25)
GuiSetState()
While 1
    $Msg = GUIGetMsg()
  Select
   Case $Msg = $GUI_EVENT_CLOSE
    Exit
   Case $Msg = $OK
        GUICtrlSetData ($Result, "")
  EndSelect
WEnd

It worked in an earlier version of AutoIt.

I'm now using ver. 3.3.4

In Windows seven

Win7

Thanks,

Docfxit

Edited by docfxit
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...