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 , 18 years ago
| Severity: | Blocking → None |
|---|
comment:2 by , 18 years ago
I just tried this and it worked fine:
$val = 2 Dim $arr[$val], $arr2[$val]
comment:3 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
$countspecies is certainly <=0
Note:
See TracTickets
for help on using tickets.

Automatic ticket cleanup.