Results 1 to 2 of 2

Thread: Dec value to character in C# (ie 82 to R)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    8

    Question Dec value to character in C# (ie 82 to R)

    Say supplying 65 and a string picking up A
    or 126 and picking up ~
    How is this easily done in c#?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Dead easy , you just need to cast the integral value to char type .

    PHP Code:
    decimal d=126;
                
    char c=(char)d;
                
    MessageBox.Show(c.ToString()); 

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