SEARCH |
![]() ![]() ![]() |
The SEARCH verb is similar to SELECT except that it also prompts for entry of one or more text strings. Records that meet any other selection criteria given on the command line are tested for the presence of the search strings at any position in the record.
Up to 20 search strings may be specified. Entry of search strings is terminated by entering a blank response to the prompt.
The optional NO.CASE keyword makes the search string test case insensitive.
By default, the SEARCH verb builds a list of all records that contain any of the supplied search strings. This can be changed by use of the ALL.MATCH or NO.MATCH keywords. The ALL.MATCH keyword specifies that the selected records must contain all of the supplied strings. The NO.MATCH keyword specifies that the selected records must not contain any of the supplied strings.
All other options of the SELECT verb may be used in SEARCH.
Example
SEARCH BP String: !SORT
The above lines entered at the keyboard would search all QMBasic source programs in the BP file for references to the !SORT() subroutine.
See also: |