How to Insert a Linefeed in a Report Expression

Last reviewed: June 27, 1995
Article ID: Q107805
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

SUMMARY

When you insert a semicolon (;) in a report expression, any information following the semicolon will be placed on the next line. However, the way in which you insert the semicolon in the report expression depends on whether you are using FoxPro for MS-DOS or FoxPro for Windows.

MORE INFORMATION

In FoxPro for MS-DOS, to place the field COMPANY in the CUSTOMER database on the next line, you would type the report expression as follows:

   CNO + ";" + COMPANY

NOTE: You must also include the expression "@;" (without the quotation marks) in the Format expression box.

In FoxPro for Windows, make sure that the Top -- Field Can Stretch option is selected. The same report expression would look like this:

   CNO ; COMPANY

There is no need to put "@;" in the Format expression box.

NOTE: This expression will cause a "Syntax Error" when the Verify button is chosen.

In FoxPro for Windows, you can also use the "CNO + CHR(13) + COMPANY" expression in place of the semicolon in the report expression box.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b linefeed
line feed
newline new line character carriage return cr lf
KBCategory: kbprg
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.