Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random Generator
Message
 
À
22/01/2001 23:19:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467103
Message ID:
00467189
Vues:
17
>Sorry, here is the problem revised. It is to be a random character string, and it is based on the 35 characters 1-9, A-Z Uppercase only. So, can VFP do a random string generation?

If your string = 10 character
RAND(-1)
lcString = ""
FOR lnI = 1 TO 10
   ln = INT(RAND() * 36)
   lcString = lcString + IIF(ln < 10, STR(ln,1), CHR(ln+55))
endfor
? lcString
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform