home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 9.2. An afill() for arrays with multiple dimensions.
- Author: Craig Yellick
- 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
- */
-
- function M_afill(a_, value)
- /*
- Multi-dimension afill()
- */
- local i
- for i := 1 to len(a_)
- if valtype(a_[i]) = "A"
- M_afill(a_[i], value)
- else
- a_[i] := value
- endif
- next i
- return nil
-
- // end of file CHP0902.PRG
-