Modify

Opened 18 years ago

Closed 18 years ago

#312 closed Bug (No Bug)

Cannot create dynamic arrays $foo[$bar]

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

Since latest revision creating an array depending on another variable gives me the following error :"H:\l2j\Spawn Map\SpMap v0.2.au3 (98) : ==> Array variable subscript badly formatted.:
Dim $result2[$countspecies], $result3[$countspecies]
Dim $result2[ ERROR:

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, 18 years ago

Severity: BlockingNone

Automatic ticket cleanup.

comment:2 by Jon, 18 years ago

I just tried this and it worked fine:

$val = 2
Dim $arr[$val], $arr2[$val]

comment:3 by J-Paul Mesnage, 18 years ago

Resolution: No Bug
Status: newclosed

$countspecies is certainly <=0

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.