home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 9.4. A function that returns an array.
- 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 Gimme(what, where, when)
- /*
- Returns array filled with the "what" field,
- for all records where the "where" condition is true
- when compared to the value specified by "when".
- */
- local these_ := {}
- seek when
- do while &where. = when
- aadd(these_, &what.)
- skip
- enddo
- return these_
-
- // end of file CHP0904.PRG
-