Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on ADIR() and ASORT()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01362370
Message ID:
01362396
Vues:
16
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform