G
germchen
Unregistered / Unconfirmed
GUEST, unregistred user!
decodedate(date,y1,m1,d1);
d:=0;
dd:=31;
a:= datetostr(encodedate(y1,m1,d));
b:= datetostr(encodedate(y1,m1,dd));
with adoquery1 do
begin
close;
sql.clear;
sql.add('select * from basicinfo where endtime>=:y and endtime<=:m order by id');
parameters.parambyname('y').value:=strtodate(a);
parameters.parambyname('m').value:=strtodate(b);
open;
end;
为什么说我的是无效的呢
提示错误:invalid argument date encode...
d:=0;
dd:=31;
a:= datetostr(encodedate(y1,m1,d));
b:= datetostr(encodedate(y1,m1,dd));
with adoquery1 do
begin
close;
sql.clear;
sql.add('select * from basicinfo where endtime>=:y and endtime<=:m order by id');
parameters.parambyname('y').value:=strtodate(a);
parameters.parambyname('m').value:=strtodate(b);
open;
end;
为什么说我的是无效的呢
提示错误:invalid argument date encode...