Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random search in a table
Message
De
09/12/2004 11:15:53
 
 
À
09/12/2004 10:19:10
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00968006
Message ID:
00968035
Vues:
8
>You can use something like this:
>
>LOCAL lcNumber, llExists
>
>RAND(-1)
>
>DO WHILE NOT llExists
>   lcNumber = PADL(INT(RAND()*100000000),8,'0')
>   llExists = SEEK(lcNumber,'cTableAlias')
>ENDDO
>
>
Hi Jim,

This is exactly what I've been looking for.. Thank you..

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform