generate sequence letters
I want to generate the sequence of letter like A,B,C,D,E.....Z, AA, AB, AC....
Here is my code:
char Letter = Char.Parse("A");
int Count = 50;
for (int i = 0; i < Count; i++) {
Response.write(Letter);
Letter++; }
It works fine for the letters A to Z but after that it shows the symbols. Can someone please edit it or give me any idea how to get the sequence after Z? Thanks!

Vimal KandasamyPosted May 7, 2009, 9:09 AM
Try this
char Letter = Char.Parse("A");{Letter = Char.Parse("A");Response.Write("A" + Letter);Deepak GuptaPosted May 7, 2009, 8:39 AM
Vimal KandasamyPosted May 7, 2009, 1:10 AM
like
char Letter = Char.Parse("A");
int Count = 26;
for (int i = 0; i < Count; i++)
{
Response.Write(Letter);
Letter++;
}
Letter = Char.Parse("A");
for (int i = 0; i < Count; i++)
{
Response.Write("A"+Letter);
Letter++;
}