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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top