Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about indexes
Message
De
21/06/2001 15:16:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00522095
Message ID:
00522116
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Does anyone know how I can create an index that would allow me to set a random order?

The mathemticians will probably get all fussy over this, but you could index off of a little udf that excepts a value (a field from your table) and builds a random number off of that.

Otherwise, I wouldn't use an index for this, I'd create a field just for the sort, have a routine populate that field randomly (using rand() most likely), and SET ORDER to an index on that field whenever you want a new random view of your cursor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform