Results 1 to 10 of 10
  1. #1
    Nexulous's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    in dbb's vagina.
    Posts
    4,047
    Reputation
    63
    Thanks
    218
    My Mood
    Innocent

    [Question] Pass generator

    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.

  2. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by songkipark View Post
    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.
    For adding a letter/word (Only adding at the end)

    Code:
    TextBox1.Text = TextBox1.Text + "other word"
    I'm not sure about deleting...

  3. The Following User Says Thank You to Pixie For This Useful Post:

    Nexulous (12-06-2009)

  4. #3
    apezwijn's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Location
    The Netherlands
    Posts
    1,525
    Reputation
    22
    Thanks
    682
    Code:
    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
    How to use example
    textbox1.text = GenString(6) '6 stands for the amount of chars generated.

  5. The Following User Says Thank You to apezwijn For This Useful Post:

    Nexulous (12-06-2009)

  6. #4
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Well for adding a character its
    Code:
    Textbox1.text = Textbox1.text +"Character here"
    For removing you could try
    Code:
    Textbox1.text = Textbox1.text - "Character here"
    Not sure if the removing one would work but its worth a shot

  7. The Following User Says Thank You to Bombsaway707 For This Useful Post:

    Nexulous (12-06-2009)

  8. #5
    Nexulous's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    in dbb's vagina.
    Posts
    4,047
    Reputation
    63
    Thanks
    218
    My Mood
    Innocent
    Thanks, you VB nerds. Will be very helpful. I will give credits to whomever's code I use.

  9. #6
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75
    Songipark? o.O Since when do you do vb? D:

  10. #7
    Nexulous's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    in dbb's vagina.
    Posts
    4,047
    Reputation
    63
    Thanks
    218
    My Mood
    Innocent
    Since now. Whut, like fight?

  11. #8
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75
    I added your msn btw. D:

  12. #9
    Nexulous's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    in dbb's vagina.
    Posts
    4,047
    Reputation
    63
    Thanks
    218
    My Mood
    Innocent
    Kay. I gotchuuuuuuuu

  13. #10
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Stop the spam

    Looks like the problem is solved.

    /Closed

Similar Threads

  1. [Question]Random Number+Letter Generator
    By Dreamer in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-08-2010, 10:34 PM
  2. [Question]Passing on .rez files
    By iare in forum Combat Arms Mods & Rez Modding
    Replies: 4
    Last Post: 12-24-2009, 08:02 AM
  3. Warrock Retailer Generator Question
    By bliu92 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-31-2009, 05:25 AM
  4. XXX Passes!
    By Flawless in forum Spammers Corner
    Replies: 45
    Last Post: 12-17-2008, 06:54 PM
  5. Photoshop Question
    By arunforce in forum Art & Graphic Design
    Replies: 6
    Last Post: 01-15-2006, 11:38 AM