How to Display the Page Number of a FoxPro for MS-DOS ReportID: Q125518 2.00 2.50 2.50a 2.50b 2.60 2.60a MS-DOS kbtool The information in this article applies to:
SUMMARYWhen a report prints in FoxPro for Windows, a Windows dialog box appears and displays the report file name and the page number currently printing. However, no comparable dialog box appears when a report prints in FoxPro for MS-DOS. Creating a simple user defined function (UDF) allows the display of the page number as the report prints.
MORE INFORMATIONThe modification of a report to call a UDF is a relatively straight forward process. The following steps outline the process: 1. Type "Modify Format form name" (without the quotation marks) in the 2. In the page footer of the report, create a field. In the expression line
3. Close the REPORT FORM.
4. Type "Modify Command showpage.prg" in the Command window. 5 In the Showpage program, type this command:
6. Save the program, and run the report.
The WAIT WINDOW NOWAIT command displays the value of the _PAGENO system memory variable without pausing the execution of the REPORT FORMAT command. The STR() function converts the numeric _PAGENO variable to a character type. If the report executes from within a program, the WAIT WINDOWS object remains on the monitor. To clear the wait window from the screen, add the follow line to the program code immediately after the REPORT FORMAT command:
This simulates pressing the space bar and clears the wait window.
Additional reference words: FoxDos 2.60 2.60a KBCategory: kbtool KBSubcategory: FxtoolRwriter
|
|
Last Reviewed: November 17, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |