Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1213 closed Bug (Fixed)

_GUICtrlListView_AddArray adds a second array incorrect to an existing listview

Reported by: SilentButeo2@… Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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)
	_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

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by Jpm

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

comment:2 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version:

comment:3 Changed 15 years ago by Valik

You added a ConsoleWrite() statement in the fix for this. It needs removed.

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

as closed The owner will remain Jpm.

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

Note: See TracTickets for help on using tickets.