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

  1. /*
  2.    Listing 6.11 Example of File-wide STATIC Variables
  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 /N option
  12.  
  13. static marray_ := { 'one', 'two', 'three' } 
  14.  
  15. function func1(params) 
  16. ? marray_[1] 
  17. return nil 
  18.  
  19.  
  20. function func2(params) 
  21. ? marray_[2] 
  22. return nil 
  23.  
  24.  
  25. function func3(params) 
  26. ? marray_[3] 
  27. return nil
  28.  
  29. // end of file CHP0611.PRG
  30.