with f_main.clientdataset4 do begin
datasource1.dataset:=nil;
dbgrideh1.DataSource:=nil;
close;
commandtext:='select peoples_id,peoples_type,peoples_name from peoples order by Peoples_name';
open;
datasource1.dataset:=f_main.clientdataset4;
dbgrideh1.DataSource:=datasource1;
AfterScroll:=dbafterscroll;
first;
end;
上面这此代码,在第一次执行时正常 ,为什么第二次再执行时,当执行到open时就停住了呢。 不再向下执行了。
datasource1.dataset:=nil;
dbgrideh1.DataSource:=nil;
close;
commandtext:='select peoples_id,peoples_type,peoples_name from peoples order by Peoples_name';
open;
datasource1.dataset:=f_main.clientdataset4;
dbgrideh1.DataSource:=datasource1;
AfterScroll:=dbafterscroll;
first;
end;
上面这此代码,在第一次执行时正常 ,为什么第二次再执行时,当执行到open时就停住了呢。 不再向下执行了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货