Jump to content
Sign in to follow this  

error in expression

Recommended Posts


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

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)


While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case = $GUI_EVENT_CLOSE
        case $btn
        case $fileopenitem
        case $fileexititem
        case $helpchangeitem
        case $helpaboutitem

Share this post

Link to post
Share on other sites

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...