home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 18.11 SAVE/RESTORE FILTERS
- Author: Joe Booth
- 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!
-
- STATIC fstack_:={}
-
- function save_filt
- Aadd( fstack_, dbfilter() )
- return NIL
-
- function rest_filt
- LOCAL fsize:=len(fstack_)
- LOCAL f_exp
- if fsize > 0
- f_exp := fstack_[fsize]
- dbsetfilter( &("{ ||"+f_exp+"} "),;
- f_exp )
- Asize(fstack_,fsize-1)
- endif
- return NIL
-
- // end of file CHP1811.PRG
-