Modify

Opened 17 years ago

Closed 17 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 Changed 17 years ago by TicketCleanup

  • Severity changed from Blocking to None

Automatic ticket cleanup.

comment:2 Changed 17 years ago by Jon

I just tried this and it worked fine:

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

comment:3 Changed 17 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

$countspecies is certainly <=0

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.