--- John McDowell <[EMAIL PROTECTED]> wrote: > I have a string resource that I would like to add some simple > formatting to with newlines. Is this possible? I'm using "\n" > but am getting errors.
If you are using Constructor, just hit the Enter/Return key where you want to insert the newline in your string. How are you trying to display the string on your handheld? This won't work: Char str[] = "abc\ndef"; WinDrawChars( str, StrLen(str), 10, 100 ); because WinDrawChars doesn't know what to do with unprintable chars. This will work: Char str[] = "abc\ndef"; SetFieldTextFromStr( MainForm, MainFField, str, true ); if MainFField is a multi-line field (and if you write the SetFieldTextFromStr function), because fields know what to do with '\n'. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
