Y
yankk
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
begin
with ADOStoreProcedure1 do
begin
close;
ADOStoreProcedure1.ProcedureName:='cp_QueryCaseByCometime;1';
parameters.ParamByName('@ct1').Value:=dtp1.DateTime;
parameters.ParamByName('@ct2').Value:=dtp2.DateTime;
open;
end;
原来ADOStoreProcedure1的ProcedureName为另外一个没有参数的存储过程
cp_QueryCaseByCometime中有两个参数:@ct1、@ct1
但是报错为找不到参数@ct1
begin
with ADOStoreProcedure1 do
begin
close;
ADOStoreProcedure1.ProcedureName:='cp_QueryCaseByCometime;1';
parameters.ParamByName('@ct1').Value:=dtp1.DateTime;
parameters.ParamByName('@ct2').Value:=dtp2.DateTime;
open;
end;
原来ADOStoreProcedure1的ProcedureName为另外一个没有参数的存储过程
cp_QueryCaseByCometime中有两个参数:@ct1、@ct1
但是报错为找不到参数@ct1