SEARCHME() Short: ------ SEARCHME() Search a DBF with user-specified criteria Returns: -------- <bSearch> -> The code block used to do the search Syntax: ------- SEARCHME([aField,aFieldTypes,aFieldLengths],[aFieldDesc]) Description: ------------ Searches the current dbf with criteria given by the user. for : Field Contents Match Query match --->> calls QUERY() End of file Beginning of File Deleted Records Memo contents On subsequent calls, if the previous search resulted in a FOUND(), a box asking "Continue..", "New Search" will pop up. If CONTINUE is selected, a continuation of the last search is done. Three arrays may be passed for FIELDS [aFields], FIELD TYPES [aFieldTypes], and FIELD LENGTHS [aFieldLengths]. An additional (optional) array of field descriptions may be passed Default is all fields, field names as descriptions. Searchme() actually returns the code block used to do the search. Normally you would want to ignore this. I use it in TAGIT() - if the code block is not NIL, then I can 'tag all matching' with it. Examples: --------- SEARCHME() Source: ------- S_SEARCH.PRG
Pingback: SP Metafunction | Viva Clipper !
Pingback: SP Functions | Viva Clipper !