SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: letter loop
-
Jul 31, 2001, 20:08 #1
- Join Date
- Apr 2001
- Location
- BC, Canada
- Posts
- 630
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
letter loop
is it possible to have a loop that increments one letter?
for example
x='a';
while (x < 'zzzzzzz')
{
//do something to increment a to b
}
once a gets to z it becomes aa then ab and ac and so on
is it possible?
-
Aug 14, 2001, 07:14 #2
- Join Date
- Feb 2001
- Location
- Clearwater, FL
- Posts
- 3,615
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Normally you would do this with numbers. Does anyone know if this can be done incrementally with letters? I will check into my JavaScript reference book.
Bookmarks