About
Pricing
Community
Teams
Start Free Trial
Log in
gmwindows
asked on
3/13/2009
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
4
1
Last Comment
Guy Hengel [angelIII / a3]
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Robin
3/13/2009
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]
3/13/2009
for can loop on the characters:
dim x as string
for x = "A" to "Z"
debug.print x
next x
Select all
Open in new window
gmwindows
3/13/2009
ASKER
Angellll, I originally tried doing that and I got "Compile Error: Type Mismatch".
Guy Hengel [angelIII / a3]
3/13/2009
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
Open in new window