delphi7 Locate 该如何使用?

2025-01-31 16:09:53
推荐回答(1个)
回答1:

Delphi syntax:
function Locate(const KeyFields: String; const KeyValues: Variant; Options: TLocateOptions
): Boolean;

ex:
Locate('Company;Contact;Phone', VarArrayOf(['Sight Diver', 'P', '408-431-1000']), [loPartialKey]);

type
TLocateOption = (loCaseInsensitive, loPartialKey);