Newbie Ascii Problem

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

What is the code for the below in C# in a webform.

I am having a hard time trying to find the correct way to do the following.
This code converts an Ascii value to a Character.

String sChar, sVal;

sChar = Mid( sVal, i, 1 ) ;
sChar = Char( Asc(sChar) ) ;
 
Mike said:
I am having a hard time trying to find the correct
way to [convert] an Ascii value to a Character.

int i = 65; // the ASCII code
char ch = (char) i; // ch = 'A'

P.
 
Back
Top