Microsoft KB Archive/108091

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:05, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.