misunderstood question ... just cast them to ints in your loop ...

On Mon, Mar 17, 2008 at 9:07 PM, Greg Young <[EMAIL PROTECTED]> wrote:
> chars are numbers underneath ...
>
>  Try Console.WriteLine((int) Letter)
>
>  if you look at an ASCII table http://www.asciitable.com/ 'a' - 'z' are
>  conventiently in order numerically ...
>
>  Cheers,
>
>  Greg
>
>
>  On Mon, Mar 17, 2008 at 8:48 PM, R. Rogers <[EMAIL PROTECTED]> wrote:
>  > The Char datatype isn't as wieldly as I thought it would be in C#.
>  >  How can I write some simple code similar to this:
>  >
>  >  for (char Letter = 'a'; Letter <= 'z'; Letter++)
>  >   Debug.Write(Letter.ToString());
>  >
>  >  It's the part of incrementing the char, that I can't figure out.
>  >
>  >  Any pointers are much appreciated,
>  >
>  >  Thanks.
>  >
>  >  Richard Rogers
>  >  http://www.RichardRogers.ca/
>  >  (MSN) [EMAIL PROTECTED]
>  >
>  >  ===================================
>  >  This list is hosted by DevelopMentor(R)  http://www.develop.com
>
>
> >
>  >  View archives and manage your subscription(s) at 
> http://discuss.develop.com
>  >
>
>
>
>  --
>  Studying for the Turing test
>



--
Studying for the Turing test

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to