home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 6.11 Example of File-wide STATIC Variables
- Author: Greg Lief
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- //───── NOTE: must compile with /N option
-
- static marray_ := { 'one', 'two', 'three' }
-
- function func1(params)
- ? marray_[1]
- return nil
-
-
- function func2(params)
- ? marray_[2]
- return nil
-
-
- function func3(params)
- ? marray_[3]
- return nil
-
- // end of file CHP0611.PRG
-