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

  1. /*
  2.    Listing 15.9. A better way to get column headings on every page.
  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 Main()
  12. /*
  13.    One more time... THIS time we'll get column headings
  14.    on every page without any duplication of effort.
  15. */
  16.   use vendor new
  17.   goto top
  18.   set device to printer
  19.   setprc(0,0)
  20.   do while .not. vendor->(eof())
  21.     if PageEject()
  22.       @ prow() +1, 0 say "Vendor Name"
  23.       @ prow() +1, 0 say "--------------------"
  24.     endif
  25.     @ prow() +1, 0 say vendor->Name
  26.     skip alias vendor
  27.   enddo
  28.   eject
  29.   set device to screen
  30.   quit
  31. return nil
  32.  
  33. // end of file CHP1509.PRG
  34.