| **Navigation:**  [[introduction.htm|Language Reference]] > [[chapter runtime properties.htm|App C - PROP: Runtime Properties]] > Complete Property List >====== PROP:NextPageNo ====== | [[prop nextfield.htm|{{btn_prev_n.gif|Previous page}}]][[chapter runtime properties.htm|{{btn_home_n.gif|Return to chapter overview}}]][[prop nexttabstop and prop prevtabstop.htm|{{btn_next_n.gif|Next page}}]] | | || A property which sets or returns the next page number in a report. When returning the NextPageNo property, consider that the page number may not yet have been determined by the print engine. It has many "page-based printing" features (e.g. WITHPRIOR/WITHNEXT) that may cause it to cache printed details and delay page break determination. To be sure that the page number you get is the final one after all cached details use the ENDPAGE statement. The next page number may also be reset using the PAGEBEFORE or PAGEAFTER attributes on a DETAIL structure. **Example:** **CustRpt  REPORT,AT(1000,1000,6500,9000),THOUS** **          HEADER** **           STRING(@n3),USE(?Page),PAGENO** **          END** **Detail    DETAIL,AT(0,0,6500,1000)** **           STRING,AT(10,10),USE(Fil:Field)** **          END** **         END** ** CODE** ** OPEN(File)** ** SET(File)** ** OPEN(CustRpt)** ** LOOP** **  NEXT(File)** **  IF Fil:KeyField <;> Sav:KeyField      !Detect group break** **   Sav:KeyField = Fil:KeyField         !Detect group break** **   ENDPAGE                             !Force page break** **   CustRpt{PROP:NextPageNo} = 1        !Every group starts on page one** **  END** **  PRINT(Detail)** ** END** ** CLOSE(CustRpt)** ** CLOSE(File)** **See Also:** [[report declare a report structure .htm|REPORT]], [[endpage force page overflow .htm|ENDPAGE]], [[pagebefore set page break first .htm|PAGEBEFORE]], [[pageafter set page break after .htm|PAGEAFTER]]