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

  1. /*
  2.    Listing 18.5  Push & pop alias
  3.    Author: Joe Booth
  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. STATIC astack:={}
  14.  
  15. function pushalias
  16. Aadd(astack,select())
  17. return nil
  18.  
  19. function popalias
  20. LOCAL x := astack[ len(astack) ]
  21. Asize(astack, len(astack)-1)
  22. select (x)
  23. return nil
  24.  
  25. // end of file CHP1805.PRG
  26.