Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a random password
Message
 
 
À
17/09/2003 15:12:01
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:
00830071
Vues:
20
In line 5, Error 107: Operator/operand type mismatch. Maybe you mean This:
LOCAL lcPassword, i
lcPassword = ""
rand(-1)
FOR i = 1 TO 6
  lcPassword = lcPassword + CHR(64 + int(26 * rand()))
NEXT
? lcPassword
Added CHR() function.

>>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</i>
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform