InPageList (check page number)

Top  Previous  Next

 

InPageList( page )

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