#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)
| ' 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 , 18 years ago
follow-up: 3 comment:2 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Just change the separator character to something not used in the literal string.
For example:
_ArrayDisplay($Array, "Test", -1, 0, "\")
comment:3 by , 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.

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