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

  1. /*
  2.    Listing 6.10 Example of File-wide STATIC Variables
  3.    (use in conjunction with file CHP0610B.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. //───── NOTE: must compile with the /N option!
  13.  
  14. function main 
  15. @ 0, 0, maxrow(), maxcol() box replicate("*", 9) 
  16. gsavescrn() 
  17. inkey(2) 
  18. cls 
  19. @ 12, 20 say "You are staring at a mostly empty screen" 
  20. @ 13, 20 say "Press any key to restore previous screen" 
  21. inkey(0) 
  22. grestscrn() 
  23. return nil 
  24.  
  25. // end of file CHP0610A.PRG
  26.