Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a random password
Message
De
17/09/2003 22:17:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00830033
Message ID:
00830178
Vues:
23
>The one time I needed this I used sys(3). <g>

Oh, right, that is an easy option. sys(2015) should work as well.

>
>>>i want to generate a random password how can i do
>>
>>Only uppercase letters, 6 characters:
>>
>>
>>local lcPassword, i
>>lcPassword = ""
>>rand(-1)
>>for i = 1 to 6
>>  lcPassword = lcPassword + 64 + int(26 * rand())
>>next
>>? lcPassword
>>
>>
>>HTH,
>>
>>Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform