Opened 14 years ago

Closed 14 years ago

#1215 closed Bug (Fixed)

_arrayDisplay() displays incorrectly when pipe character is is present in flelds.

Reported by: anonymous Owned by: Jpm
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: _arrayDisplay Cc:


Environment = under WIN_XP/Service Pack 3 X86

In AutoIt beta _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 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"]]

;displays correctly
Global $a[5][2] = [[1,"a,A"],[2,"b,B"],[3,"c,C"],[4,"d,D"],[5,"e,E"]]

A possible fix is to add the following lines

  If $sSeparator = $sReplace Then
    If $sSeparator = Chr(124) Then
      $sReplace = Chr(126)
      $sReplace = Chr(124)

immediately after this line in _arrayDisplay().

  If $sSeparator = "" Then $sSeparator = Chr(124)

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by Bowmore

Forgot to add my name to the above report.

comment:2 Changed 14 years ago by Jpm

  • Owner changed from Gary to Jpm
  • Status changed from new to assigned

comment:3 Changed 14 years ago by Jpm

  • Milestone set to
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed in version:

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

as closed The owner will remain Jpm.

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

Note: See TracTickets for help on using tickets.