- BACK -

Unibase Logo
  

Search Verbs Added to Unibase Give Text Processing Powers

Two new verbs, search and searchf, now give Unibase by DMAC, release 7.41i, programs more power. These verbs search all of a record, or a specified portion of a record, for a string of characters.

Search Within and Over Fields

The verb search will report occurrences of the search string across field boundaries. The verb searchf restricts the search to occurrences within a field.

The syntax of the verbs is a follows:

                search fldnum srchvar loc else instr

where fldnum specifies a field in a data file where the search is to begin and srchvar specifies the character search string.
If the pattern is found before the end of the record, its position within the record is in the variable loc in the format nnnn:mmmm for field number and character of the start.

If the pattern is not found, the else instruction is executed.