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:
01362386
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>>You sorted it on the fifth column, which is a file attributes. To sort on the first column ( a file name), ommit the second parameter all together
>>
>>ASORT(aInputFiles)
>>
>>
>
>Thank you for your help. But (just so that I can learn) if I used parameter 1, would ASORT(aInputFile,1), still sort on the first column? I am just trying to justify to myself that maybe using parameter 5 was just a type and not early sign of losing my mind *g*.

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 be the column to sort on plus the row to start sorting on.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform