Jump to content

switch statement doesn't work


 Share

Recommended Posts

hi :)

I guess i have trooble with my autoIt + scite installation !

When i just test the switch statement exemple documention code i get this

C:\Documents and Settings\_-_DyeziDEE_-_\Bureau\test.au3 (2) : ==> "Case" statement with no matching "Select" statement.:

?

i tried to switch between atoIt 3.1.1.133 and 3.1.1.0 but same error.

i reinstall/installed autoIT+ scite like said in autoIt dowload page, same happend.

could you help a noob like me plz :whistle: ?

Link to comment
Share on other sites

  • Moderators

2 things.

1. We are on the Official release 3.2 now.

2. Show a simple Switch/EndSwitch statement that is failing, you could do it in 5 or 6 lines.

Edit:

Run this by itself:

$blah = 6
Switch $blah
    Case 6
        MsgBox(64, 'Info:', '$blah = 6')
    Case Else
        MsgBox(64, 'Info:', '$blah = something other than 6')
EndSwitch
Does this fail? ... Also remember before 3.2 Switch was a Beta option. Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

2 things.

1. We are on the Official release 3.2 now.

2. Show a simple Switch/EndSwitch statement that is failing, you could do it in 5 or 6 lines.

Edit:

Run this by itself:

$blah = 6
Switch $blah
    Case 6
        MsgBox(64, 'Info:', '$blah = 6')
    Case Else
        MsgBox(64, 'Info:', '$blah = something other than 6')
EndSwitch
Does this fail? ... Also remember before 3.2 Switch was a Beta option.

It works with 3.2 :whistle: tx

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...