Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 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 Changed 16 years ago by GEOSoft

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 follow-up: Changed 16 years ago by Gary

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

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

For example:

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

comment:3 in reply to: ↑ 2 Changed 16 years ago by anonymous

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.

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 owner will remain Gary.
Author


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

 
Note: See TracTickets for help on using tickets.