| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PrintPreviewClass > PrintPreviewClass Methods >====== InPageList (check page number) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[init initialize the printpreviewclass object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[kill shut down the printpreviewclass object .htm|{{btn_next_n.gif|Next page}}]] | | || **InPageList( **//page//**// //****)** {{blk2blue.jpg|blk2blue.jpg}} | **InPageList** | Evaluates page against value(s) in PagesToPrint. | | //page// | An integer constant, variable, EQUATE, or expression containing the page number to check. | The** InPageList **method evaluates a page number against the value(s) contained in the PagesToPrint property, and returns TRUE (1) if the page is in PagesToPrint or FALSE (0) if it is not. **Implementation:** The PageManagerClass.Draw (which is PRIVATE) and SyncImageQueue methods call the InPageList method to verify report pages for inclusion in the preview window and the printed report respectively. **Return Data Type:     **BYTE **Example:** **PrintPreviewClass.SyncImageQueue PROCEDURE** **i LONG,AUTO** **  CODE** **  LOOP i = RECORDS(SELF.ImageQueue) TO 1 BY -1** **    IF ~SELF.InPageList(i)** **      SELF.DeleteImageQueue(i)** **    END** **  END** **See Also:     **[[pagestoprint the pages to print .htm|PagesToPrint]]