Modify ↓
Opened 12 years ago
Closed 12 years ago
#2803 closed Bug (Fixed)
_ArrayMaxIndex _ArrayMinIndex @error on single element array
| Reported by: | ResNullius | Owned by: | guinness |
|---|---|---|---|
| Milestone: | 3.3.13.7 | Component: | Standard UDFs |
| Version: | 3.3.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
_ArrayMax & _ArrayMin returning empty result on an array with only one element. Traced problem to _ArrayMaxIndex & _ArrayMinIndex. Production Version: 3.3.12.0 & latest beta 3.3.13.6
#include <Array.au3> Dim $aArray[1]=[5] $iMaxIndex = _ArrayMaxIndex($aArray) MsgBox(4096,"MaxIndex", "$iMaxIndex = " & $iMaxIndex & @CRLF & @CRLF & "Error = " & @error & @CRLF & @CRLF) $iMinIndex = _ArrayMinIndex($aArray) MsgBox(4096,"MinIndex", "$iMaxIndex = " & $iMinIndex & @CRLF & @CRLF & "Error = " & @error & @CRLF & @CRLF) ;offending lines in _ArrayMaxIndex() & _ArrayMinIndex() functions ;Local $iDim_1 = UBound($avArray, $UBOUND_ROWS) - 1 ;......... ;If $iDim_1 < 0 Then Return SetError(5, 0, -1)
Attachments (0)
Change History (1)
comment:1 by , 12 years ago
| Milestone: | → 3.3.13.7 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [10397] in version: 3.3.13.7