Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting multi-dimensional arrays
Message
 
À
18/03/2002 20:00:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00634318
Message ID:
00634326
Vues:
21
Hi Chris,

I don't think you can sort your array with 2 different column at the same time, but you can do somthing like this

1. add an extra column to the array containing column1+column+2 and sort the new column

or

2. transform your array to a temp cursor and sort with the select - sql statement and put it back to your array
i.create cursor temp ....
ii.append from array
iii. select * from cursor order by column1, column2 into array

I hope this help...

Tony
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform