Modify ↓
Opened 17 years ago
Closed 17 years ago
#306 closed Bug (No Bug)
Wrong Error message when a variable is not an array
Reported by: | GEOSoft | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.2.12.0 | Severity: | None |
Keywords: | Cc: |
Description
This used to return a message about the variable not being an array. Now it returns the "Unable to parse" message
$t = "some string" MsgBox(0, "Test", $t[0])
Attachments (0)
Change History (4)
comment:1 Changed 17 years ago by WeaponX
comment:2 follow-up: ↓ 3 Changed 17 years ago by Jos
I get :
>Running:(3.2.12.0):C:\Program Files\AutoIt3\autoit3.exe "C:\script.au3" C:\...script.au3 (2) : ==> Subscript used with non-Array variable.: MsgBox(0, "Test", $t[0]) MsgBox(0, "Test", $t^ ERROR
comment:3 in reply to: ↑ 2 Changed 17 years ago by anonymous
Replying to Jos:
I get :
>Running:(3.2.12.0):C:\Program Files\AutoIt3\autoit3.exe "C:\script.au3" C:\...script.au3 (2) : ==> Subscript used with non-Array variable.: MsgBox(0, "Test", $t[0]) MsgBox(0, "Test", $t^ ERROR
That's what I used to get and this time (I've already deleted the bad code) all I got was the "Unable to Parse....." message. I'll see if I can recreate it and let you know. In the meantime you can probably put this bug on hold. It can always be resurrected later.
comment:4 Changed 17 years ago by Jos
- 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.
Perhaps strings will be stored as character arrays, like C++? Nah. Although it would be cool to access a string by index without using StringSplit or StringMid.