Modify

Opened 18 years ago

Closed 18 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 by WeaponX, 18 years ago

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.

comment:2 by Jos, 18 years ago

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

in reply to:  2 comment:3 by anonymous, 18 years ago

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 by Jos, 18 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.