dm.jxs.Locate(Sfield.text,Evalue.text,[loCaseInsensitive]);

解决方案 »

  1.   

    mplements a virtual method for searching a dataset for a specified record and makes that record the active record.function Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions): 
    Boolean; virtual;DescriptionThis function returns False, indicating that a matching record was not found and the cursor is not repositioned.Descendant classes override this method so that it locates the record where the fields identified by the comma-delimited string KeyFields have the values specified by the Variant or Variant array KeyValues. Options indicates whether the search is case insensitive and whether partial matches are supported. Locate should return True if a record is found that matches the specified criteria and the cursor repositioned to that record.