Microsoft KB Archive/108091: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 18: Line 18:
<pre>  expression:
<pre>  expression:


       PADR(ALLTRIM(STR(_pageno)),10,&quot; &quot;)
       PADR(ALLTRIM(STR(_pageno)),10," ")
</pre>
</pre>
To left-justify the _PAGENO field in the FoxPro for Windows Report Writer only, use the following method:
To left-justify the _PAGENO field in the FoxPro for Windows Report Writer only, use the following method:

Latest revision as of 10:23, 20 July 2020

How to Left-Justify the Page Number in a Report

ID: Q108091

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

To left-justify the _PAGENO field in the FoxPro for MS-DOS or FoxPro for Windows Report Writer, use the following method:

1. Double-click the _PAGENO field in your report.

2. In the Expression Builder, delete _PAGENO and type the following

   expression:

      PADR(ALLTRIM(STR(_pageno)),10," ")

To left-justify the _PAGENO field in the FoxPro for Windows Report Writer only, use the following method: 1. Select the field.

2. From the Object menu, choose Text Alignment.

3. Choose Left.

NOTE: The number 10 in the above expression is an estimate based upon the size of the _PAGENO field. 10 works for the default size assigned to _PAGENO by the Quick Report option. You may have to adjust this number based upon the actual size of the _PAGENO field.

Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b RWriter KBCategory: kbprg KBSubcategory: FxtoolRwriter


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