Modify ↓
#1213 closed Bug (Fixed)
_GUICtrlListView_AddArray adds a second array incorrect to an existing listview
| Reported by: | Owned by: | J-Paul Mesnage | |
|---|---|---|---|
| Milestone: | 3.3.1.2 | Component: | AutoIt |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
When using the _GUICtrlListView_AddArray function, the first array is added correctly. When a second array is added, the first column is added correctly, but the other colums overwrite the already added data.
code to reproduce:
Dim $aTableData1[3][2] = [[10,11],[12,13],[14,15]]
Dim $aTableData2[3][2] = [[20,21],[22,23],[24,25]]
For $col=0 To UBound($aTableData1,2)-1
_GUICtrlListView_AddColumn($List2, $aTableData1[0][$col])
ConsoleWrite("add coll"&@CRLF)
Next
_GUICtrlListView_AddArray($List2, $aTableData1)
_GUICtrlListView_AddArray($List2, $aTableData2)
The output of this should be:
10 11
12 13
14 15
20 21
22 23
24 25
but you get:
10 21
12 23
14 25
20
22
24
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.3.1.2
comment:3 by , 16 years ago
You added a ConsoleWrite() statement in the fix for this. It needs removed.
Note:
See TracTickets
for help on using tickets.

In fact I get
20 21
22 23
24 25
10 11
12 13
14 15
I admit there is a bug that the second is not added but inserted