Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 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 Changed 3 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 en 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

Version 0, edited 3 years ago by Jos (next)

comment:2 Changed 3 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

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.