for(new i = 'А'; i < i <= 'Я'; i++)
{
AllowNickNameCharacter(i, true);
}
for(new i = 'а'; i < i <= 'я'; i++)
{
AllowNickNameCharacter(i, true);
}
Maybe. It depends on your codepage layout. If this block of character map represents exactly the alphabet, it would work. Still, I recommend the previous approach to ensure no incorrect characters are allowed.