BUG: _PAGENO Wrong When Data Grouping & New Page Selected

Last reviewed: July 5, 1995
Article ID: Q110120
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b

SYMPTOMS

The _PAGENO system variable is incremented incorrectly when the following three conditions are met:

  • A field in the Detail band stretches past one page.
  • There is a data grouping.
  • In the Group Info dialog box, the When Group Changes, Begin New Page check box is selected.

The _PAGENO system variable does not increment on the last page of the group if the Detail band extends past one page. For example, if the first group of a report has a Detail band that stretches from page 1 to page 3 of the report, the value for _PAGENO for pages 1 and 2 would be correct, but the value for page 3 would be 2. When the group changes on page 4, _PAGENO will be 4, which is correct. This behavior will continue throughout the report.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Execute these commands:

         CREATE TABLE grp_tst (notes M)
         APPEND BLANK
         REPLACE notes WITH REPLICATE('X',10000)
         CREATE REPORT grp_tst.frx
    

  2. Create a field in the Detail band and set the expression to GRP_TST.NOTES. Select the Position Relative to Top--Field Can Stretch check box. Size the field so that it stretches across the whole page.

  3. Create a field in the Page Footer band and set the expression to _PAGENO.

  4. From the Report menu, choose Data Grouping. Set the expression to RECNO() and select the When Group Changes, Begin New Page check box.

  5. From the Report menu, choose Page Preview. Choose the Next button in the preview until you reach the last page. Note the value for _PAGENO. Now choose the Previous button, and note that the value for _PAGENO is the same.


Additional reference words: FoxWin 2.50 2.50a 2.50b buglist2.50
buglist2.50a buglist2.50b
KBCategory: kbtool kbbuglist
KBSubcategory: FxtoolRwriter


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 5, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.