How to Insert a Linefeed in a Report Expression

ID: Q107805

The information in this article applies to:

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

Last Reviewed: June 27, 1995