Results 1 to 3 of 3

Thread: ASC or CHR or something like that...?

  1. #1

    Thread Starter
    Addicted Member mralston's Avatar
    Join Date
    Aug 2002
    Location
    Altrincham Nr Manchester, England
    Posts
    141

    ASC or CHR or something like that...?

    How do I convert from the number 65 to the letter A or the number 90 to the letter Z?

    It's to go in a loop that runs from 65 to 90 creating 26 buttons lettered A to Z.

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    (char)65 <- will do it

    for (int i = 65; i < 90; i++) {
    MessageBox.Show(Convert.ToString((char)i);
    }
    \m/\m/

  3. #3

    Thread Starter
    Addicted Member mralston's Avatar
    Join Date
    Aug 2002
    Location
    Altrincham Nr Manchester, England
    Posts
    141
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width