hi all
i want to know following......
as usual we do...


For( i =0; i++ ; i<4)

but i want

for( i = "a"; ????? ;i<"d")

plz help.

I am doing this in C# to show you how it is done.

Not entirely sure if ASP.NET will support the same functionality.

public char NextLetter(char letter)
{
return alphabet[alphabet.IndexOf(letter) % alphabet.Length];
}

unfortunately, I don't think you can do it that way (but I may be wrong!). I think you have to do it with numbers, just like always.

However, you can reference the letter by using char(x) to get the character.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.