Does anybody know how to generate strings in VB?
Example:
3 letter string
should generate
aaa
aab
...
...
bbb
...
...
zzz
Printable View
Does anybody know how to generate strings in VB?
Example:
3 letter string
should generate
aaa
aab
...
...
bbb
...
...
zzz
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