Results 1 to 2 of 2

Thread: String Generator , Password Generator

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Chennai , India
    Posts
    44

    Question

    Does anybody know how to generate strings in VB?
    Example:

    3 letter string
    should generate

    aaa
    aab
    ...
    ...
    bbb
    ...
    ...
    zzz

  2. #2
    Guest
    Is this what you want?
    Code:
    For I = 0 To 25
        fChar = 97 + I
        For x = 0 To 25
            sChar = 97 + x
            For y = 0 To 25
                List1.AddItem Chr(fChar) & Chr(sChar) & Chr(97 + y)
            Next y
        Next x
    Next I

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