Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For i = 1 to 10! Can you do, For i = A to Z? 1

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
Hello,
I know you can do

For i = 1 to 10
response.write("hello")
Next

But I need to run the same event for every letter of the alphabet...can you use somthing that will work for A to Z?


-Ovatvvon
 
Code:
Dim lngASCA as long
Dim strUCase as string
Dim strLCase as string
Fim I as long
lngASCA = ASC("A")   ' Numeric value of "A"
For I = 0 to 25
    strUCase = Chr(lngASCA + I)
    strLCase = LCase(strUCase)
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top