Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random
Message
De
28/04/1998 15:04:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Random
Divers
Thread ID:
00095495
Message ID:
00095497
Vues:
19
>I have a dbf table of members and related info.
>How can I get a random sampling of 411 out of the existing 6812?
>I been trying to apply rand() but with no success..
>Thank you for your understanding.

I had to apply a similar process for the Quiz section. What I did was to select all the records in a cursor. Then, I use the _TALLY to RAND(). I can now use the RECNO() of the cursor to locate the records. I can't apply the RAND() on the original table as some records may be deleted.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform