function FindModem(const ModemDetailFile, SearchExpr : string;
SearchIn : set of TLmFindSet; IgnoreCase : Boolean) : TLmModem;
Locates a specific modem in a modem detail list.
The FindModem method will search the modem detail list specified by ModemDetailFile for matching modems. SearchExpr is a regular expression defining the search terms. The fields to search in are specified in the SearchIn parameter, and can be one or more of the following:
|
|
|
|
|
IgnoreCase determines whether the search is case sensitive or not.
The return value will be the first modem in the modem detail list that matches the search criteria. If no modems match the search criteria, the return value will be nil. The FindNextModem method is used to find the next matching modem.
See also: FindModemRecord, FindNextModem, FindNextModemRecord