Hi
I am trying to get the index for the maximum value from an array, but I can't get it working, see example code:
#include <Array.au3>
#include <MsgBoxConstants.au3>
Local $aArray[1][4]
$aArray[0][0] = 8
$aArray[0][1] = 7
$aArray[0][2] = 2
$aArray[0][3] = 4
_ArrayDisplay ($aArray)
MsgBox($MB_SYSTEMMODAL, 'Max Index Numeric value is 0:8', _ArrayMaxIndex($aArray, 1) & ":" & _ArrayMax($aArray, 1) )
$aArray[0][3] = 99
_ArrayDisplay ($aArray)
MsgBox($MB_SYSTEMMODAL, 'Max Index Numeric value is 3:99', _ArrayMaxIndex($aArray, 1 ) & ":" & _ArrayMax($aArray, 1 ) )
The second pop-up displays 0:8 it does not find the 99
Any help much appreciated