Modify

#1114 closed Bug (Works For Me)

_ArrayDisplay() not honouring Opt("GUIDataSeparatorChar",...)

Reported by: partypooper@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.1.1 Severity: None
Keywords: _ArrayDisplay, GUIDataSeparatorChar Cc:

Description

#Include <Array.au3>
Opt("GUIDataSeparatorChar", " ")
$s_String = "ABCDE|FGHI JKL|MNO PQR|STUV WXYZ"
$a_Array = StringSplit($s_String, " ")
_ArrayDisplay($a_Array)

Should produce:
[0] = 4
[1] = ABCDE|FGHI
[2] = JKL|MNO
[3] = PQR|STUV
[4] = WXYZ

But instead produces:
[0] = 4
[1] = ABCDE
[2] = JKL
[3] = PQR
[4] = WXYZ

If the separator (" ") is physically specified in the _ArrayDisplay() command like the script below, it works as it should but then it's kinda pointless specifying Opt("GUIDataSeparatorChar", " ") in the script.

#Include <Array.au3>
Opt("GUIDataSeparatorChar", " ")
$s_String = "ABCDE|FGHI JKL|MNO PQR|STUV WXYZ"
$a_Array = StringSplit($s_String, " ")
_ArrayDisplay($a_Array,"",-1,0," ")

Attachments (0)

Change History (2)

comment:1 by J-Paul Mesnage, on Aug 6, 2009 at 11:02:42 PM

Resolution: Works For Me
Status: newclosed

Working for me as fixed in the current beta.
It was not working under 3.3.0.0

comment:2 by partypooper@…, on Aug 7, 2009 at 12:39:37 AM

Yes, my mistake JPM, it DOES work under current beta 3.3.1.1 but NOT for the current production 3.3.0.0.

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.