Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 Changed 11 years ago by Jpm

  • Resolution set to Works For Me
  • Status changed from new to closed

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

comment:2 Changed 11 years ago by partypooper@…

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

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 ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.