Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a func to convert a char/int to ascii??

Status
Not open for further replies.

pms18066

Programmer
Jan 12, 2005
94
US
Is there a func to convert a char/int to ascii??
 
I don't know what do you mean by converting an int to ASCII.

In the case of char, I imagine you want to get the ASCII code. Just do:

Code:
char yourChar='a';
return (int) a;

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top