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

  1. /*
  2.    Listing 6.10 Example of File-wide STATIC Variables
  3.    (use in conjunction with file CHP0610A.PRG)
  4.    Author: Greg Lief
  5.    Excerpted from "Clipper 5: A Developer's Guide"
  6.    Copyright (c) 1991 M&T Books
  7.                       501 Galveston Drive
  8.                       Redwood City, CA 94063-4728
  9.                       (415) 366-3600
  10. */
  11.  
  12. //───── must compile with /N option!
  13.  
  14. static buffer 
  15.  
  16. function gsavescrn(t, l, b, r) 
  17. /* establish default window parameters if not passed */ 
  18. t := if(t == NIL, 0, t)
  19. l := if(l == NIL, 0, l)
  20. b := if(t == NIL, maxrow(), b)
  21. r := if(t == NIL, maxcol(), r)
  22. buffer := { t, l, b, r, savescreen(t, l, b, r) } 
  23. return nil 
  24.  
  25.  
  26. function grestscrn 
  27. restscreen(buffer[1], buffer[2], buffer[3], buffer[4], buffer[5]) 
  28. return nil 
  29.  
  30. // end of file CHP0610B.PRG
  31.