Results 1 to 5 of 5

Thread: I need help on random letters

  1. #1

    Thread Starter
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    My First Post!!!

    how do i make random letters like 5-13 letters appera on a textbox?
    Last edited by BuggyProgrammer; Sep 3rd, 2004 at 10:57 PM.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  2. #2
    Guest
    Try the following
    Code:
    Private Sub Command1_Click()
    
        Randomize
        
        Do Until Char > 32
            Char = Int(Rnd * 126) + 1
        Loop
        
        Text1 = Text1 & Chr(Char)
        
    End Sub

  3. #3

    Thread Starter
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    thanx ill try that
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  4. #4

    Thread Starter
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    how do i make it so its only letters
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  5. #5
    Guest
    Change it to this.
    Code:
    Private Sub Command1_Click()
    
        Randomize
    
        Do Until Char > 64
            Char = Int(Rnd * 122) + 1
        Loop
    
        Text1 = Text1 & Chr(Char)
    
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width