Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Asort by specific column in a multi-dimensional array
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00539014
Message ID:
00539038
Views:
10
>>>Hi everyone,
>>>
>>>I have lnFields=afields(laFields). I want to have all fields sorted alphabetically. How can I do it in VFP6.0? Is this function improved in VFP7.0?
>>>
>>>Thanks in advance.
>>Following works in any version
>>
lnColumn = 3    && by size
>>lnColumn = 1    && by name
>>=ASORT(laFields, lnColumn)
>
>Thanks, Sergey. I guess, I misunterpreted the Help, If the array is two-dimensional, the starting element nStartElement determines both the row where the sort begins and the column that determines the sort order of the rows.
>
>It was not clear for me, that does it mean.
Actually to sort by the first column you don't even need the second parameter
=ASORT(laFields)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform