Converting char to ascii code?

Discuss PocketC for Palm OS (including Desktop Edition)

Postby Velvis on Mon Dec 11, 2000 2:33 am

Could someone explain (if it is possible) how to get the ascii value from a character?

Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Postby davidyblood on Mon Dec 11, 2000 11:03 am

convert it into an integer. ex:

char Ch;
text(5,20,(int)Ch);//this will show the ascii code instead of the actual character.

hope this helps,
David Youngblood
Posts: 7
Joined: Tue Dec 05, 2000 12:25 pm
Location: USA

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 2 guests