Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#553 closed Bug (No Bug)

_ArrayDisplay() has another problem if using literal pipes in the array

Reported by: GEOSoft Owned by: Gary
Milestone: Component: Standard UDFs
Version: 3.2.13.7 Severity: None
Keywords: Cc:

Description

I seldom use this function but it seems that each time I do, I find something else that is broken. If the array contains literal pipes then it will not display properly.
Repro code

#include <array.au3>
Dim $Array[4] = ["Test","$Item = '|'", "Test 2", "$Item_2 = '||'"]
_ArrayDisplay($Array)
In this case $Item = '|' will be truncated to $Item = ' and $Item_2 = '
' will not display at all.

I have not taken the time to look at a fix at this point.

Attachments (0)

Change History (3)

comment:1 by GEOSoft, 18 years ago

Sorry about the typo. The line

In this case $Item = '|' will be truncated to $Item = ' and $Item_2 = will not display at all.

Should have been

In this case $Item = '|' will be truncated to $Item = ' and $Item_2 =
will not display at all.

comment:2 by Gary, 17 years ago

Resolution: No Bug
Status: newclosed

Just change the separator character to something not used in the literal string.

For example:

_ArrayDisplay($Array, "Test", -1, 0, "\")

in reply to:  2 comment:3 by anonymous, 17 years ago

Replying to Gary:

Just change the separator character to something not used in the literal string.

For example:

_ArrayDisplay($Array, "Test", -1, 0, "\")

Not really a viable option if you are using it to read the results of _FileReadToArray() and the file being read is an au3 file. I don't use _arraydisplay enough to be concerned about it anyway.

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.