Originally Posted by vbjohn
On this part of my code I am doing a randomized letter generator. What is going on is that it comes out duplicate. How can I fixed it?
FOR i = 1 to 2
For forUserIdCharacterCount = 1 To 80
rndNewUserIdCharacter = Int((90 - 65 + 1) * Rnd() + 65)
strNewUserId = strNewUserId & Chr(rndNewUserIdCharacter)
I think you *are* getting new letters appended to your string at the end, but because you're not clearing it out (e.g., strNewUserId = "", maybe just bnefore the second "For") you're not seeing them -- they're off the far right of the screen.
You should also move the Randomize statement out of that loop. Call it only once at program start.
I do not endorse any items advertised within this frame, and regret that the viewer is subjected to such.