Opened 15 years ago
Closed 15 years ago
#1215 closed Bug (Fixed)
_arrayDisplay() displays incorrectly when pipe character is is present in flelds.
Reported by: | anonymous | Owned by: | Jpm |
---|---|---|---|
Milestone: | 3.3.1.3 | Component: | Standard UDFs |
Version: | 3.3.1.1 | Severity: | None |
Keywords: | _arrayDisplay | Cc: |
Description
Environment = 3.3.1.1 under WIN_XP/Service Pack 3 X86
In AutoIt beta 3.3.1.1 _arrayDisplay() displays data incorrectly under specific conditions.
When the default separator character is "|" and is present in the array data, the _arrayDisplay() displays rows twice and columns that contain the separator character are truncated at the separator character.
AutoIt 3.3.0.0 truncates data in columns but does not display rows twice.
Reproduction Script
#include <array.au3> ;displays rows twice and only data up to pipe character in second column Global $a[5][2] = [[1,"a|A"],[2,"b|B"],[3,"c|C"],[4,"d|D"],[5,"e|E"]] _ArrayDisplay($a) ;displays correctly Global $a[5][2] = [[1,"a,A"],[2,"b,B"],[3,"c,C"],[4,"d,D"],[5,"e,E"]] _ArrayDisplay($a)
A possible fix is to add the following lines
If $sSeparator = $sReplace Then If $sSeparator = Chr(124) Then $sReplace = Chr(126) Else $sReplace = Chr(124) EndIf EndIf
immediately after this line in _arrayDisplay().
If $sSeparator = "" Then $sSeparator = Chr(124)
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by Bowmore
comment:2 Changed 15 years ago by Jpm
- Owner changed from Gary to Jpm
- Status changed from new to assigned
comment:3 Changed 15 years ago by Jpm
- Milestone set to 3.3.1.3
- Resolution set to Fixed
- Status changed from assigned to closed
Fixed in version: 3.3.1.3
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.
Forgot to add my name to the above report.