IB enhancements for Comet32
From CometWiki
(Difference between revisions)
Badge (Talk | contribs)
(New page: == SearchFile == '''Syntax:''' SearchFile (lun, format-statement-label) SearchString$ FieldSize FieldPosition Occurrences Flags [EXCP=statement-label] <p> '''Discussion:''' The SearchFi...)
Newer edit →
(New page: == SearchFile == '''Syntax:''' SearchFile (lun, format-statement-label) SearchString$ FieldSize FieldPosition Occurrences Flags [EXCP=statement-label] <p> '''Discussion:''' The SearchFi...)
Newer edit →
Revision as of 18:22, 19 May 2009
SearchFile
Syntax: SearchFile (lun, format-statement-label) SearchString$ FieldSize FieldPosition Occurrences Flags [EXCP=statement-label]Discussion: The SearchFile statement searches the file open on the specified LUN for the search string. If the match is found, the record is returned to the variables in the format.
.
INPUT NAME$
.
SearchFile (2,CustRec) NAME$ NameLen NamePos 1 Flags
1 - Search Next
2 - Case-sensitive search
4 - Field begins with search string
E02 - End of file was reached before the number of occurrences were found
E45 - An invalid parameter was specified
E99 - Memory allocation failed