home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 15.12. A function to help print a standard page heading.
- 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 PageHead(sys, rpt, id, width, left, right, page)
- /*
- Print a standardized page heading
- based on the parameters passed.
- */
- local a := dtoc(date()) +" " +id
- local b := time() +" Page " +ltrim(str(page))
- @ prow() +1, left say sys
- @ prow(), (width -(len(a) +right)) say a
- @ prow() +1, left say rpt
- @ prow(), (width -(len(b) +right)) say b
- return nil
-
- // end of file CHP1512.PRG
-