How can I obtain ASCII value of a char

Discuss OrbForms Designer and PocketC Architect

Postby design4use on Thu Sep 19, 2002 9:44 pm

Is there a way to obtain the ASCII integer value of a given character in a string? I haven't found anything in the docs or in the sample code available...Thanks,
d4u
design4use
 
Posts: 128
Joined: Fri May 10, 2002 3:31 pm

Postby samps on Thu Sep 19, 2002 11:48 pm

Try this one:


// mainform.oc
// Created for mainForm

handler mainForm.onopen() {
char a;
a="a";
label101.text=(int)a;
}

cheers

Samps
Ubuntu user #82
samps
 
Posts: 143
Joined: Tue Feb 20, 2001 12:33 am
Location: Australia


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 1 guest

cron