Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on ADIR() and ASORT()
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01362370
Message ID:
01362396
Views:
15
>Now, I am confused about correction. Is it correction to your original answer that simply using the array name in ASORT() without a parameter will sort the array on the 1st column? Or is it a correction to using "1" as a parameter?

Sorry, it replaces otherwise part in my previous statement. :)
Here's "full" version:

Yes '1' would work too. For 2D arrays, the second parameter is the column to sort on as long as it's less or equal the # of columns in the array. Otherwise it'll define the column to sort on plus the row to start sorting on. You can use ASUBSCRIPT() and AELEMENT() functions to convert between row/column and item number.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform