home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 15.11. Yet another version of PageEject().
- Author: Craig Yellick
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
-
- function PageEject(length, top, bottom)
- /*
- Eject page based on current printer row and
- the parameters passed.
- */
- local need_eject := ((prow() +bottom) > length) ;
- .or. (prow() = 0)
- if need_eject
- if prow() > 0
- eject
- setprc(0,0)
- endif
- @ prow() +top, 0 say ""
- endif
- return need_eject
-
- // end of file CHP1511.PRG
-