How To Generate Random Strings (192353)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft FoxPro for UNIX 2.6
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft FoxPro for Macintosh 2.6a
This article was previously published under Q192353 SUMMARY
When testing SQL functions or creating test data, it is useful to be able
to generate random string data. The FoxPro function SYS(2015) creates ten
character random strings for use as procedure names. However, SYS(2015)
does not allow the developer to specify a range of ASCII characters to use,
nor does it allow the developer to specify the length of the string. This
article demonstrates how to create and use the RandomString() function.
REFERENCES
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbcode kbhowto KB192353 |
---|
|