home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 26.6 Parallel GETs with Stack-Based Functions
- 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!
-
- memvar getlist
-
- function setsogets
- local x := { 1, 2, 3, 4, 5, 6, 7, 8, 9}, y, z
- for z = 1 to 3
- for y = 1 to 3
- @ y * 2, 0 get x[(z - 1) * 3 + y]
- next
- gfsavegets()
- next
- cls
- gfrestgets(2)
- reget()
- read
- gfrestgets(1)
- reget()
- read
- gfrestgets(3)
- reget()
- read
- aeval(x, { | a | qout(a) } )
- return nil
-
-
- /*
- ReGet(): redisplay all active GETs
- */
- static function reget
- aeval(getlist, { | get | get:display() } )
- return nil
-
- // end of file CHP2606.PRG
-