Microsoft KB Archive/107805: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 18: Line 18:
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:
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:


<pre>  CNO + &quot;;&quot; + COMPANY
<pre>  CNO + ";" + COMPANY
</pre>
</pre>
NOTE: You must also include the expression &quot;@;&quot; (without the quotation marks) in the Format expression box.
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:
In FoxPro for Windows, make sure that the Top -- Field Can Stretch option is selected. The same report expression would look like this:


<pre>  CNO ; COMPANY
<pre>  CNO ; COMPANY
</pre>
</pre>
There is no need to put &quot;@;&quot; in the Format expression box.
There is no need to put "@;" in the Format expression box.
NOTE: This expression will cause a &quot;Syntax Error&quot; when the Verify button is chosen.
NOTE: This expression will cause a "Syntax Error" when the Verify button is chosen.


In FoxPro for Windows, you can also use the &quot;CNO + CHR(13) + COMPANY&quot; expression in place of the semicolon in the report expression box.
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
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

Latest revision as of 09:19, 20 July 2020

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.