Write a public part today to use the TQuery.locate method. By the way, a small summary. Explanation in HELP
Function Locate (Const Keyfields: string; const keyvalues: variant; options: tlocateOptions: boolean;
Keyfields: Is A String Containing a Semicolon-Delimited List of Field Names on Which To Search.
KeyValues: is a variant array containing the values to match in the key fields.TLocateOptions is a set that optionally specifies additional search latitude when searching on string fields on LocateOptionstype TLocateOption = (loCaseInsensitive, loPartialKey); TLocateOptions = setof TLocateOption; loCaseInsensitive Key fields. And Key Values Are Matched WITHOUT REGARD to CASE.// ignite Size LopArtialKey Key Values CAN Include Only Part of the Matching Key Field Value; // Just partial match, from the beginning to match {] In addition, if there is no string type in Keyfields or LocateOptions = [], this function will ignore this} to see so much, is LOCATE? Please see Searches The DataSet for a Specified Record and Makes That Record The Current Record.