Opened on Dec 7, 2021 at 8:02:20 AM
Closed on Dec 7, 2021 at 9:21:37 AM
Last modified on Dec 8, 2021 at 7:46:44 AM
#3855 closed Bug (No Bug)
_ArrayToString for 1D array, for used in the Combo Box
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.5 | Severity: | None |
| Keywords: | Cc: |
Description
Original from Include Array.au3
Func _ArrayToString(Const ByRef $aArray, $sDelim_Col = "|", $iStart_Row = -1, $iEnd_Row = -1, $sDelim_Row = @CRLF, $iStart_Col = -1, $iEnd_Col = -1)
If using for Combo Box with 1D Array,
$Array = [1,2,3,4,5]
GUICtrlSetData($Combo1, _ArrayToString($Array))
MsgBox(0,"",_ArrayToString($Array))
the String result will be
1
2
3
4
5
instead of 1|2|3|4|5
But if exchange the Delimiter the result will be ok
Func _ArrayToString(Const ByRef $aArray, $sDelim_Row = "|", $iStart_Row = -1, $iEnd_Row = -1, $sDelim_Col = @CRLF, $iStart_Col = -1, $iEnd_Col = -1)
Thank You
Attachments (0)
Change History (2)
comment:1 by , on Dec 7, 2021 at 9:21:37 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , on Dec 8, 2021 at 7:46:44 AM
Just swift the $sDelim_Row = "|" and $sDelim_Col = "@CRLF", for me, will fix the problem, cause I used this as data list in the combo box, so need to have "|" as the separator, instead of "@CRLF"
just it
Thank you

This bug report isn't very clear to me, so please first post your issue in our forums so it can be discussed there and determined whether this is really a bug or not.
*Closing as no bug for now, but will reopen when it is a real bug *
Jos