Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Random Generator
Message
De
22/01/2001 23:29:39
 
 
À
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:
00467122
Vues:
18
>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?
lcString = ''
for lnI = 1 to 20
	lnNumber = int(rand() * 36)
	lcString = lcString + iif(lnNumber < 10, tran(lnNumber), chr(lnNumber + 55))
endfor
?lcString
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform