sorry, it is StrAToI()



-----Original Message-----
From: jacky Cheung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:32 PM
To: 'Palm Developer Forum'
Subject: RE: how to assign Char* to Int16


Use StrIToA(userID).  But remember to allow memory for your character string
first.

Jacky

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul
Sulistio
Sent: Wednesday, March 28, 2001 12:19 PM
To: Palm Developer Forum
Subject: how to assign Char* to Int16


Does anyone know how to assign Char* to Int16?

this is my code:

tydef struct
{
  Int16 userID;
}User;
----------

Char* usrID;

user->userID =(...)usrID;

I tried using (Int16)usrID to cast usrID into Int16 but It didn't work I got
the wrong result. Any idea?

Thanks
-paul

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to