Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2536 closed Bug (No Bug)

_ArrayDisplay fails with default parameters

Reported by: jchd18 Owned by:
Milestone: Component: Standard UDFs
Version: 3.3.9.22 Severity: None
Keywords: Cc:

Description

Using default values for parameters doesn't produce a valid display in the beta (x86 and x64).
Using the Default keyword fails in release and beta (x86 and x64).

#AutoIt3Wrapper_UseX64=y
#include <Array.au3>
Local $array[4][2] = [ _
	["abc", 12], _
	["def", 34], _
	["ghi", 56], _
	["jkl", 78] _
]
Local $build = " x86"
If @AutoItX64 Then $build = " x64"

_ArrayDisplay($array, "Explicit " & @AutoItVersion & $build, -1, 0, "", "|", "String|Integer")
_ArrayDisplay($array, "Default " & @AutoItVersion & $build, Default, Default, Default, Default, "String|Integer")

Attachments (0)

Change History (5)

comment:1 by mlipok, 12 years ago

but as I see relase version and beta give different results:

3.3.8.1

[0]|abc|12
[1]|def|34
[2]|ghi|56
[3]|jkl|78

[0]DefaultabcDefault12
[1]DefaultdefDefault34
[2]DefaultghiDefault56
[3]DefaultjklDefault78

3.3.9.21

EMPTY ARRAY

EMPTY ARRAY

comment:2 by jchd18, 12 years ago

Exactly that.

comment:3 by mlipok, 12 years ago

strange
Now I'm on a different computer (Win7 Pro 64Bit).
to 3.3.8.1 I have the results

This is Exactly what I see

[0]|abc
[1]|def
[2]|ghi
[3]|jkl

[0]DefaultabcDefault12
[1]DefaultdefDefault34
[2]DefaultghiDefault56
[3]DefaultjklDefault78

but when I use button "Copy selected"
then I get this

[0]|abc|12
[1]|def|34
[2]|ghi|56
[3]|jkl|78

comment:4 by J-Paul Mesnage, 12 years ago

Resolution: No Bug
Status: newclosed

The problem does not come from the default values but from the header definition that has only 2 columns instead a 2+1 to take care of the extra column for the row numbering

_ArrayDisplay($array, "Default " & @AutoItVersion & $build, Default, Default, Default, Default, "#|String[Integer")

This is due to a bug fix when creating listviewitem with more than column than the header one which now lead to no creation.

comment:5 by mlipok, 12 years ago

Thanks Jpm

After analyzing only say that version 3.3.8.1 was a problem with the "Default" but it works fine in 3.3.9.22.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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