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

  1. /*
  2.    Listing 6.13 STATIC Functions (use in conjunction with CHP0613A.PRG)
  3.    Author: Greg Lief
  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. //───── NOTE: must compile with the /N option!
  12.  
  13. function Whatever 
  14. Center(17, "This is a test") 
  15. return nil 
  16.  
  17. static function center(row, msg) 
  18. @ row, int((maxcol() + 1 - len(msg)) / 2) say msg 
  19. return nil 
  20.  
  21. //───── CHP0613B.PRG
  22.