Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting a Winner
Message
De
04/06/1999 20:19:25
 
 
À
04/06/1999 14:07:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00226460
Message ID:
00226725
Vues:
27
>=RAND(-1) && Initialize to system clock
>SELECT table
>COUNT TO nMaxValue FOR !DELETED()
>nWinnerRecord=INT(1+RAND()*nMaxValue)
>GO nWinnerRecord && This is the winning record

:)) You forgot the deleted records just before your last line of code. :)

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform