I'm currently in the process of churning out a Password generator. I can get it to work perfectly, I just want to know how you can take out/add a character to the process.
Nexulous (12-06-2009)
How to use exampleCode:Function GenString(ByRef length As Integer) As String Randomize() Dim allowableChars As String allowableChars = "abcdefghijklmnopqrstuvwxyz0123456789" ' Remove or add chars you want Dim i As Integer For i = 1 To length GenString = GenString & Mid$(allowableChars, Int(Rnd() * Len(allowableChars) + 1), 1) Next End Function
textbox1.text = GenString(6) '6 stands for the amount of chars generated.
Nexulous (12-06-2009)
Well for adding a character its
For removing you could tryCode:Textbox1.text = Textbox1.text +"Character here"
Not sure if the removing one would work but its worth a shotCode:Textbox1.text = Textbox1.text - "Character here"
Nexulous (12-06-2009)
Thanks, you VB nerds. Will be very helpful. I will give credits to whomever's code I use.
Songipark? o.O Since when do you do vb? D:
Since now. Whut, like fight?
I added your msn btw. D:
Kay. I gotchuuuuuuuu
Stop the spam
Looks like the problem is solved.
/Closed