Modify

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: 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 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 3.3.1.2
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.2

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.