K
kingstar106
Unregistered / Unconfirmed
GUEST, unregistred user!
With datamodule3.ADOQuery3 do
Begin
close;
Sql.Clear;
Sql.Add('select * from medicine where datediff(day,date_buy,getdate())<(time+:sd);' );
Parameters.ParamByName('sd').DataType:=ftinteger;
parameters.ParamByName('sd').value:=strtoint(edit3.text);
open;
End;
编译通过,运行时出错:
the applicatioin is using arguments that are of the wrong type,are out of
acceptable range,or are in conflict with another one.
请高手指点。
送上仅有的100分。
Begin
close;
Sql.Clear;
Sql.Add('select * from medicine where datediff(day,date_buy,getdate())<(time+:sd);' );
Parameters.ParamByName('sd').DataType:=ftinteger;
parameters.ParamByName('sd').value:=strtoint(edit3.text);
open;
End;
编译通过,运行时出错:
the applicatioin is using arguments that are of the wrong type,are out of
acceptable range,or are in conflict with another one.
请高手指点。
送上仅有的100分。