Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#3855 closed Bug (No Bug)

_ArrayToString for 1D array, for used in the Combo Box

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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))


the String result will be


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 Changed 2 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

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 *

Last edited 2 years ago by Jos (previous) (diff)

comment:2 Changed 2 years ago by anonymous

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

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.