Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get (a-z) or (A-Z) or (0-9) with rand()?
Message
De
23/09/2005 09:22:57
 
 
À
22/09/2005 18:38:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01052187
Message ID:
01052355
Vues:
7
>>What do I have to do to have the following results
>>
>>Letter 'a' to letter 'z'
>>or
>>letter 'A' to letter 'A'
>>or
>>digit '0' to digit '9'
>>
>>While using the function RAND()?
>
>
>? substr('AB...Zab...z01...9',RAND()*62+1,1)
>
Thank you.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform