Modify ↓
Opened 13 years ago
Closed 13 years ago
#2129 closed Bug (No Bug)
Incorrect Switch .. Case Else EndSwitch parsing
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.9.0 | Severity: | None |
Keywords: | Cc: |
Description
Executing this code causes ignoring all next Case statements after nested Case Else
$sSource = 'Get7zBeginOffset' $iError = 1 $Result = "Bad choice" Select Case StringCompare ($sSource, "GetSFXEndOffset") = 0 Switch $iError Case -1 $Result = "-1" Case 1 $Result = "1" EndSwitch Case StringCompare ($sSource, "GetMSIVersionInfo") = 0 Switch $iError Case -1 $Result = "-1" Case Else $Result = "~" EndSwitch Case StringCompare ($sSource, "Get7zBeginOffset") Switch $iError Case -1 $Result = "-1" Case 1 $Result = "1" EndSwitch Case StringCompare ($sSource, "ImportVersionInfo") = 0 Switch $iError Case -1 $Result = "-1" Case 1 $Result = "1" Case 2,3 $Result = "2,3" EndSwitch EndSelect ConsoleWrite ($Result & @CR)
Attachments (0)
Change History (2)
comment:1 in reply to: ↑ description Changed 13 years ago by anonymous
comment:2 Changed 13 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
sorry, seems to be my mistake, needs to close or delete this ticket