Opened 5 years ago

Closed 5 years ago

#3637 closed Bug (Fixed)

_ArrayDisplay : error when Array is empty and Range parameter exists

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


#include <Array.au3>
Global $aHistorique[1][10] = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]]
_ArrayDisplay($aHistorique, "Title 1") ; shows 1 row (ok)
_ArrayDelete($aHistorique, 0)
_ArrayDisplay($aHistorique, "Title 2") ; shows no row (ok)
_ArrayDisplay($aHistorique, "Title 3", "|5") ; blocking error

Script stops and Console shows :
"C:\Program Files\AutoIt3\Include\ArrayDisplayInternals.au3" (343) : ==> Variable subscript badly formatted.:
$vTmp = $aArray[$i][$j]
$vTmp = $aArray[ ERROR

Exit code: 1

If the Array had one dimension only, the same error would happen at line 345 => $vTmp = $aArray[$i]
A display of the variables shows that $i = -1 in both cases.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [12155] 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.