Link to home
Create AccountLog in
Avatar of gmwindows
gmwindows

asked on

Enumerating Strings VB6

Hello,

I need to basically print the alphabet one character at a time.
I use a For Next loop to print the numbers 0-9 and i the code to do the same thing for letters (A-Z)
Does anyone know this code?

If you have any questions feel free to ask.

Thank you
gmWindows
ASKER CERTIFIED SOLUTION
Avatar of Robin Uijt
Robin Uijt
Flag of Netherlands image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
for can loop on the characters:
dim x as string
for x = "A" to "Z"
 debug.print x
next x

Open in new window

Avatar of gmwindows
gmwindows

ASKER

Angellll, I originally tried doing that and I got "Compile Error: Type Mismatch".
sorry, please ignore... you can loop on character data type in .net, but indeed not in vb6.
please take robinu's suggestion