Modify ↓
Opened 6 years ago
Closed 5 years ago
#3276 closed Bug (No Bug)
Getting/Setting DllStruct array-element with index stored in varible fails without using Execute
Reported by: | genius257 | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
The code below illustrates the problem
$tPoint = DllStructCreate("INT A[5]") $tPoint.A(1) = 1 $tPoint.A(2) = 2 $tPoint.A(3) = 3 $tPoint.A(4) = 4 $tPoint.A(5) = 5 $i = 5 $tPoint.A($i) = 6;doesn't work For $i=1 To 5 ConsoleWrite("["&$i&"]"&($tPoint.A($i))&@CRLF);doesn't work ConsoleWrite("["&$i&"]"&Execute("$tPoint.A("&$i&")")&@CRLF);does work Next
Attachments (0)
Change History (2)
comment:1 Changed 6 years ago by jchd18
comment:2 Changed 5 years ago by Jpm
- 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.
Dot notation for DllStructs is AFAIK not documented. Use DllStructSetData instead.