On Fri, 1 Feb 2002 10:55, you wrote:
> Hello,
> I am trying to concatenate some strings together but am having some
> problems. I declare a "char Share[128]" string, as this is used to hold
> text input from a text field entered by the user. I am trying to
> concatenate this string with another string of type "char *Market" which is
> just constant text, so that the resulting string holds firstly the contents
> of the Market string and then the contents of the Share string.
>
> I am using the StrCat function as follows:
>
> StrCat(Market, Share);

I think you'll find the problem is that StrCat(a, b) appends b to a, not the 
other way around. Ie, you're trying to change the contents of Market.

What you probably want to do is have another buffer, copy Market to it, then 
StrCat Share onto the end of it.

-- 
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