Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8451 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a problem. I made a database to generate random passwords. The password field is a calculation adding eight letters picked by the calculation--Round(Random* 26, 0), this then is used to select a letter from the text string consisting of a...z. Just to check, I searched for duplicates and found two, but they aren't duplicates (qdgnnfkh, jrvqjrki), they aren't even close. Does anybody have a clue as to what is going on here?

Posted

The "Password" field is indexed (because of the search). The calculation is as follows:

Right(Middle(alphabet, space1, 1) &

Middle(alphabet, space2, 1) &

Middle(alphabet, space3, 1) &

Middle(alphabet, space4, 1) &

Middle(alphabet, space5, 1) &

Middle(alphabet, space6, 1) &

Middle(alphabet, space7, 1) &

Middle(alphabet, space8, 1) &

Middle(alphabet, space9, 1), 8), result is text.

The fields "space1" through "space9" are not indexed, but the "Do not store..." check box is unchecked. The calculation for these fields are as follows:

Round(Random* 26, 0), result is number

The "alphabet" field is not indexed, but the "Do not store..." check box is unchecked. The calculation is as follows:

"abcdefghijklmnopqrstuvwxyz", result is text

I know there is a better (more efficient) way of doing the field, but I don't think that would explain how "qdgnnfkh" and "jrvqjrki" can be returned as duplicates, yet when searching for each individually, only one is returned.

Posted

I suspect that the index in your file is corrupt. Try recovering the file, and see if the problem goes away.

BTW, your random function will produce values in the range of 0 to 26, not 1 to 26. You should change it to:

Round(Random * 25,0)+1

[ October 03, 2001: Message edited by: BobWeaver ]

Posted

From my experience, the only way you can tell that the index is corrupt is when you do a find and the wrong records are returned, as in your case. Sometimes records that you know are in there get lost etc. A corrupt index is obviously not a common occurrence, but it does occasionally happen.

This topic is 8451 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.