Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random Generator
Message
 
To
22/01/2001 23:19:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00467103
Message ID:
00467189
Views:
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?

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
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform