table1.Locate(字段名, 字段值)

解决方案 »

  1.   

    type
      TLocateOption = (loCaseInsensitive, loPartialKey);
      TLocateOptions = setof TLocateOption;function Locate(const KeyFields: String; const KeyValues: Variant; Options: TLocateOptions): Boolean; override;
      

  2.   

    table1.Locate(fieldname, fieldvalue) 
      

  3.   

    locate(字段1,字段2,[查找值1,查找值2],选项)
      

  4.   

    if Locate("字段1;字段2;字段3",VarArrayOf(['值1', '值2', '值3']),[]) = true then
       ……参数是区别大小写,包含子串。
      

  5.   

    if Locate('字段1;字段2;字段3',VarArrayOf(['值1', '值2', '值3']),[]) = true then
      ……参数是区别大小写,包含子串。   
      

  6.   

    sorry 这个功能我还没有用到,用到了自己一定能够解决,向自己学习是正道。