Both StrCat and StrNCat can only be used for concatening strings together.
Code such as StrCat(name, (const Char*)num) will concatenate the string
beggining at address 10 onto name.
You need to use StrPrintF. This is *like* sprintf from standard C. See
StrPrintF under the String Manager chapter of the Palm OS Reference (page
747 with my version) for details.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Vinayak
Ponkshe
Sent: Tuesday, 31 July 2001 15:18
To: Palm Developer Forum
Subject: About casting & concat
Hi,
Is it possible to contact one integer to one string ? I tried out with
StrCat() as well as with StrNCat(), but it doesnt seems to be working.
For eg, I have one string & int say ,
char name[10] = "One";
UInt8 num = 10;
And I want to contact num over name. So that name it self will become one10.
So if anybody have any idea abt this then pelase try to tell me.
Regards,
Vinayak
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
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/