Trying to create a random string, x characters in length using 0-9 and a-z/A-Z and can\'t seem to find a good example, any ideas?
I forgot all my VB6 (thank God) but in pseudocode it's pretty easy:
all_chars = an array of all the valid chars
seed random number generator
for i = 1 to x do
random_index = get a random number between 1 and length of all_chars
'I remember how to concat and comment in VB6 :-)
string = string & all_chars[random_index]
end for
done!
So it's just a matter of finding out how to create an array and fill it with characters, how to get the length of the array and how to get a random number between the first and last indexes of said array.
Well, all that and looping of course.