Returns the highest value of an array.
var = MAX( ar(1) )
Var Numeric variable
that will be assigned with the highest value of the array.
ar() The first array element of the array to return the highest value
At the moment MAX() works only with BYTE arrays.
Support for other data types will be added too.
MIN , AVG
ar(10) As Byte
Dim bP as Byte
For bP = 1 to 10
ar(bP) = bP
bP = Max(ar(1))
Print bP 'should print