home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 6.3 Visibility of PRIVATE 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 the /N option!
-
- function myfunc1
- public whatever := 2000
- private mvar := 20
- myfunc2()
- ? mvar // 20
- ? whatever // 2000
- return nil
-
-
- function myfunc2
- private mvar := 50, whatever := "testing"
- ? mvar // 50
- ? whatever // testing
- return nil
-
- // end of file CHP0603.PRG
-