beenet Posted April 12, 2001 Posted April 12, 2001 Can FM generate random passwords containing both "alphabetical" and "numerical" units? For example: f3ds4s2 I've figured out how to generate random numerical "PIN" numbers. For example: Round(Random* 10000, 0) However, I'd like to have FM also generate passwords in the formate listed above. Can this be done? If so, how? Thanks!
BobWeaver Posted April 12, 2001 Posted April 12, 2001 gCharacterList = "0123456789abcdefghijklmnopqrstuvwxyz" Char1 = Middle(gCharacterList,Int(Random*35.999)+1,1) Char2 = Middle(gCharacterList,Int(Random*35.999)+1,1) Char3 = Middle(gCharacterList,Int(Random*35.999)+1,1) Char4 = Middle(gCharacterList,Int(Random*35.999)+1,1) Char5 = Middle(gCharacterList,Int(Random*35.999)+1,1) Char6 = Middle(gCharacterList,Int(Random*35.999)+1,1) Password = Char1 & Char2 & Char3 & Char4 & Char5 & Char6
beenet Posted April 13, 2001 Author Posted April 13, 2001 Bob, Thanks for the reply. Where do I place this code? -David
BobWeaver Posted April 16, 2001 Posted April 16, 2001 It depends how and when you are assigning the passwords. I assume you are using a script. If so, then make all of these global fields, and then use "Set Field" commands in your script to assign the values to Char1...Char6 and Password. The value of gCharacterList can be preset to the text value shown when you set up the database.
Recommended Posts
This topic is 8877 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now