Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 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: 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 Jos, 4 years ago

Resolution: No Bug
Status: newclosed

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

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

comment:2 by anonymous, 4 years ago

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

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.