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
Visual Basic Classic

Avatar of undefined
Last Comment
Guy Hengel [angelIII / a3]

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Robin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Guy Hengel [angelIII / a3]

for can loop on the characters:
dim x as string
for x = "A" to "Z"
 debug.print x
next x

Open in new window

gmwindows

ASKER
Angellll, I originally tried doing that and I got "Compile Error: Type Mismatch".
Guy Hengel [angelIII / a3]

sorry, please ignore... you can loop on character data type in .net, but indeed not in vb6.
please take robinu's suggestion
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck