home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP15.EXE / CHP1512.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  732 b   |  25 lines

  1. /*
  2.    Listing 15.12. A function to help print a standard page heading.
  3.    Author: Craig Yellick
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. function PageHead(sys, rpt, id, width, left, right, page)
  12. /*
  13.    Print a standardized page heading
  14.    based on the parameters passed.
  15. */
  16. local a := dtoc(date()) +" " +id
  17. local b := time() +" Page " +ltrim(str(page))
  18.   @ prow() +1, left say sys
  19.   @ prow(), (width -(len(a) +right)) say a
  20.   @ prow() +1, left say rpt
  21.   @ prow(), (width -(len(b) +right)) say b
  22. return nil
  23.  
  24. // end of file CHP1512.PRG
  25.