Combination code generator solved!

July 18, 2008 at 5:04 am (Achievement, New User) ()

Thinking about the way i was to tackle my combination code issue, i thought if i could alter the random number to change from an integer to a string, i would be able to manually check when i get < 5 digits and then manually add the extra zero’s needed, and it worked!!

                               

Permalink Leave a Comment

New User – The functions

July 18, 2008 at 4:55 am (New User, Obstacles) (, , , , , )

decided to create a new user form, this is where people who are new to this program and dont have a combination code can create a new account ans store thier details to thier local database.

This page should include the typic fill in form components including:

- first name  – Surname – Date of Birth – FBI department - combination code

the first name, surname, DOB, and department are all user inputted, but the combination code will be a generated random 5 digit number. Difficulty with this is the fact this we are dealing with numbers:

in vb, if you make a random generator code for numbers between 0 and  99999 (5 digits), if the result is 321 obviously it does not have 5 digits, because the 0’s dissapear because they are irrelivant and take up space.. this is a problem, as i Want 5 digits…

Permalink Leave a Comment