Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/107805

From BetaArchive Wiki

How to Insert a Linefeed in a Report Expression

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


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.