text1 and text2 are set to the same address. 'b' is overwritting 'a'

try
StrCat(TextIn,"ab");

or
s[0] = 'a';
s[1] = 'b';
s[2] = NULL;
StrCat(TextIn,s);
TextOut = TextIn;   // if you must or just use return (StrCat(TextIn,s));

----- Original Message -----
From: "Farzin Ashraghi" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Friday, July 07, 2000 6:10 PM
Subject: StrCat


> Hi!
>
> I'm having problems using StrCat. I want to obtain texOut = "ab".
> Could you tell me please, what is wrong with this?
>
> char s[1];
> CharPtr textOut, text1=s, text2=s;
> text1="a";
> text2="b";
> textOut=StrCat(textIn, textTemp);
>
> Thank you!
> Farzin
>
> --
> 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 ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to