Newbie Question (VB ASC() and CHR() functions)

  • Thread starter Thread starter Gonçalo Boléo
  • Start date Start date
G

Gonçalo Boléo

I'm never programming in c# but at work i will now have to do that.
I'm very experimented in VB and some things confuse me a little.

What are the equivalents in c# for ASC and CHR to return de ASCII code of a
character ando to do the inverse process.


thanks,
Gonçalo Boléo
 
Hi!

...
What are the equivalents in c# for ASC and CHR to return de ASCII
code of a character ando to do the inverse process.

i = ASC("A") is equivalent to
int i = (int) 'A';

c=CHR(65) is equivalent to
char ch = (char) 65;

Bye

Oskar
 
Back
Top