Modify

Opened 8 years ago

Closed 8 years ago

#3637 closed Bug (Fixed)

_ArrayDisplay : error when Array is empty and Range parameter exists

Reported by: pixelsearch Owned by: J-Paul Mesnage
Milestone: 3.3.15.1 Component: Standard UDFs
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description

#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 by J-Paul Mesnage, 8 years ago

Milestone: 3.3.15.1
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [12155] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.