pro dbfparse, spar, items, stype, values ;+ ; NAME: ; DBFPARSE ; PURPOSE: ; Parse the search string supplied to DBFIND. Not a standalone routine ; ; CALLING SEQUENCE: ; DBFPARSE, [ spar, items, stype, values ] ; ; INPUTS: ; spar - search parameter specification, scalar string ; ; OUTPUTS: ; items - list of items to search on ; stype - search type, numeric scalar ; 0 item=values[j,0] ; -1 item>values[j,0] ; -2 itemvalues(j,0) ; -2 itemvalue ; (strpos(next,'>') gt 0): begin items[nitems]=gettok(next,'>');get item name values[nitems,0]=next ;get minimum value stype[nitems]=-1 end ; ; Range specified or maximum specified. ; (strpos(next,'<') gt 0): begin ; form is min