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

  1. /*
  2.    Listing 18.13  Recsize() example
  3.    Author: Joe Booth
  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 can_fit
  12. local jj
  13. if recsize() < 132
  14.    for jj = 1 to fcount()
  15.       ?? fieldget(jj)
  16.    next
  17.    ?
  18. elseif recsize() < 255
  19.    ?? chr(15)              // Set printer to condensed print
  20.    for jj = 1 to fcount()
  21.       ?? fieldget(jj)
  22.    next
  23.    ? chr(18)               // Set printer to normal printing
  24. endif
  25. return nil
  26.  
  27. // end of file CHP1813.PRG
  28.