The SEARCH function returns the record number
for the first record in the specified data file for which the
specified field matches the specified search string.
Fieldvalue specifies the field variable (specified by FIELD statement) of
the target field.
Recordstart specifies the record at which to start. If this parameter
is omitted, the BHT starts at record #1, the beginning of the
file.
If there are no matches, the function returns 0. |