我想把光标定位到DBGRID的指定的数据上,数据我用TQUERY查找到的,可是我每次
定位时,总是光标不动!
我的代码是:
TQuery中SQL:
select score.xh
from student,score
where student.xh=score.xh and student.nj=:nj
and student.zyh=:zyh
order by score.xh 程序中先动态改变nj,zyh然后:
DBGrid1.DataSource.DataSet.Locate('xh',Query1.fieldvalues['xh'].[]);
但是光标,不动
定位时,总是光标不动!
我的代码是:
TQuery中SQL:
select score.xh
from student,score
where student.xh=score.xh and student.nj=:nj
and student.zyh=:zyh
order by score.xh 程序中先动态改变nj,zyh然后:
DBGrid1.DataSource.DataSet.Locate('xh',Query1.fieldvalues['xh'].[]);
但是光标,不动
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货