Sign in to follow this  
Followers 0
gcue

error in expression

2 posts in this topic

hello.

im getting an "error in expression" message. i hear theres a utility out there that can help detect wrong syntax. i remmeber seeing it one time but forget what it was called. i remember not using it because it had to be compiled. if this indeed exists and is definitely a must have, is there a compiled version out there any of you can point me towards.

here's the script im getting error in expression in:

$arr = IniReadSection("assets.ini", "ASSETS")
$combo = GUICtrlCreateCombo($arr[1][0], 50, 35); create combobox and set first item
For $i = 2 To $arr[0][0]
    GUICtrlSetData($combo, $arr[$i][0]); add other items and set a new default control
Next

GUICtrlCreateLabel("Enter Asset:", 50, 10)
$asset = GUICtrlCreateInput("", 10, 75, 100, 20)

$filemenu = GUICtrlCreateMenu("&File")
$fileopenitem = GUICtrlCreateMenuItem("Edit Device List", $filemenu)
$fileexititem = GUICtrlCreateMenuItem("Exit", $filemenu)

$helpmenu = GUICtrlCreateMenu ("&Help")
$helpchangeitem = GUICtrlCreateMenuitem ("Change Log",$helpmenu)
$helpaboutitem = GUICtrlCreateMenuitem ("About",$helpmenu)

$btn = GUICtrlCreateButton ("OK", 255,27,40,20,0x0300)
GUICtrlSetState(-1, $GUI_FOCUS)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case = $GUI_EVENT_CLOSE
          Exit
        case $btn
            APing()
        case $fileopenitem
            EditINI()
        case $fileexititem
            Xbutton()
        case $helpchangeitem
            Change()
        case $helpaboutitem
            About()
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Remove that nasty little = in your switch statement.

Edit: Oh and a quick tip, double clicking on the error in SciTEs console jumps to the error :D

Edited by monoceres

Broken link? PM me and I'll send you the file!

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