Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1213 closed Bug (Fixed)

_GUICtrlListView_AddArray adds a second array incorrect to an existing listview

Reported by: SilentButeo2@… 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 J-Paul Mesnage, 16 years ago

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 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.1.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

comment:3 by Valik, 16 years ago

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

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.