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时就停住了呢。 不再向下执行了。