home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP26.EXE / CHP2606.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  847 b   |  45 lines

  1. /*
  2.    Listing 26.6 Parallel GETs with Stack-Based Functions
  3.    Author: Greg Lief
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. //───── NOTE: must compile with the /N option!
  12.  
  13. memvar getlist
  14.  
  15. function setsogets
  16. local x := { 1, 2, 3, 4, 5, 6, 7, 8, 9}, y, z
  17. for z = 1 to 3
  18.    for y = 1 to 3
  19.       @ y * 2, 0 get x[(z - 1) * 3 + y]
  20.    next
  21.    gfsavegets()
  22. next
  23. cls
  24. gfrestgets(2)
  25. reget()
  26. read
  27. gfrestgets(1)
  28. reget()
  29. read
  30. gfrestgets(3)
  31. reget()
  32. read
  33. aeval(x, { | a | qout(a) } )
  34. return nil
  35.  
  36.  
  37. /*
  38.    ReGet(): redisplay all active GETs
  39. */
  40. static function reget
  41. aeval(getlist, { | get | get:display() } )
  42. return nil
  43.  
  44. // end of file CHP2606.PRG
  45.