Ignore my previous question, I just found instructions on your website.

However, now that I have 3.2 in, I still can't seem to concatenate a string with a constant.

When I have:

#define testConstant "text"
STRING ID TEST "text1 "\ testConstant

The error returned by the compiler is "expecting: String Text, got testConstant"

I couldn't find reference to any other method of doing concatenations in the documentation.

Jeremy Cheng wrote:
Thanks Ben. I'm using codewarrior 9.3, and it's using the 3.1 version of the compiler. Is there something I need to do, to update PilRC or can I just go in and replace the folder?

Thanks,
Jeremy

Ben Combee wrote:

At 06:06 PM 1/26/2005, you wrote:

I'm working in PILRC Designer and I'd like to be able to concatenate a string with a constant to form a string resource. I know you can concatenate multiline strings separating ""s with a '\' but is there a way that I can concatenate a "" string with a constant defined elsewhere (either a #define or another String resource). Essentially I have a string that is repeated in many titles, strings, messages and would like to be able to update them all from a single constant.



If you have a recent version of the PilRC compiler (3.2), then string constants are allowed and the compiler follows C concatentation rules, IIRC.



-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/





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

Reply via email to