>>>>How to find out the maximum value of the elements in an array?
>>>>Calculate doesnt seem to be working.
>>>>
>>>You have to loop thru all the elements of array.
lnMaxVal = myarray[1]
>>>FOR i=2 TO ALEN(myarray)
>>> lnMaxVal = MAX(lnMaxVal, myarray[i])
>>>ENDFOR
>>
>>How about ASORT()?
>
>It's too easy. :)
Also, if the order of the array is not the order for the ASORT, you'll end up reordering the array and always pointing to the last element...