Line Continuation and Carriage Returns in String Tables

Last reviewed: November 2, 1995
Article ID: Q44385
The information in this article applies to:
  • Microsoft Windows Software Development Kit for Windows versions 3.1 and 3.0
  • Microsoft Win32 SDK, versions 3.5, 3.51, and 4.0

The RC compiler does not offer a line-continuation symbol for strings in string tables.

To force a carriage return into a long line of text, use one of the methods described below.

One method is to force the carriage return using \012\015. The following example demonstrates the use of \012\015 and should be considered to be on one continuous line:

   STRINGTABLE
   BEGIN
   IDSLONGSTRING, "This is a long line of text so I would like \012\015
   to force a carriage return."
   END

For more information on this method, query in the Microsoft Knowledge Base on the following words:

   STRINGTABLE WinLoadString

Another method of forcing a carriage return is to press ENTER and continue the line on the next line. The following example will force a carriage return after the word "like."

   STRINGTABLE
   BEGIN
   IDSLONGSTRING, "This is a long line of text so I would like
   to force a carriage return"
   END

If you try to use the \n or other \ characters, the RC compiler will ignore them.

NOTE: There is a 255-character limit (per string) in a string table. For more information on this limit, please query on the following words in the Microsoft Knowledge Base:

   STRINGTABLE length 255


Additional reference words: 3.00 3.10 3.50 4.00 95
KBCategory: kbtool
KBSubcategory: TlsRc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.