Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays - finding the max value
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00662347
Message ID:
00662573
Views:
16
>>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()?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform