Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find max value in array
Message
From
31/03/2006 12:52:41
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
31/03/2006 12:35:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01109569
Message ID:
01109586
Views:
21
>>Hi all,
>>I have an array MyArray(100,5)
>>I want to search for maximum value in column 2 in MyArray
>>What is the best way to do this?
>>Thanks for your help
>
>acopy(myArray,aTemp)
>asort(aTemp,2,-1,1)
>luMax = aTemp[2]
>
Cetin

Thanks dear Cetin
I know about ASORT() but i dont understand it.
Can you explain you code for me?
Thanks again
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform