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

Click here to load this message in the networking platform