Modify ↓
#1114 closed Bug (Works For Me)
_ArrayDisplay() not honouring Opt("GUIDataSeparatorChar",...)
| Reported by: | 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 , 17 years ago
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
comment:2 by , 17 years ago
Yes, my mistake JPM, it DOES work under current beta 3.3.1.1 but NOT for the current production 3.3.0.0.
Note:
See TracTickets
for help on using tickets.

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