T_zb_0502: TADOTable;procedure TF_Query.BitBtn1Click(Sender: TObject);
begin
  MainObject.F_main.T_zb_0502.Locate('no', VarArrayOf([edit1.Text]), [loPartialKey]);
 end;
[Error] T_Query.pas(41): Undeclared identifier: 'loPartialKey'
[Error] T_Query.pas(41): Incompatible types: 'TLocateOption' and 'Integer'帮我解决一下。谢谢

解决方案 »

  1.   

    1.uses db
    2.MainObject.F_main.T_zb_0502.Locate('no', VarArrayOf([edit1.Text]), [loPartialKey]);   [loPartialKey] 应为Integer类型。
      

  2.   

    2.参数[loPartialKey]位置 应为Integer类型。
      

  3.   

    procedure TF_Query.BitBtn1Click(Sender: TObject);begin
       MainObject.F_main.T_zb_0502.Locate('no', VarArrayOf([edit1.Text]),0);
    end;procedure TF_Query.BitBtn1Click(Sender: TObject);
    begin
      MainObject.F_main.T_zb_0502.Locate('no', VarArrayOf([edit1.Text]),[0]);
    end;都不行
      

  4.   

    [Error] T_Query.pas(44): Incompatible types: 'TLocateOption' and 'Integer'
      

  5.   

    结贴,可以了MainObject.F_main.T_zb_0502.Locate('no', VarArrayOf([edit1.Text]),[]);