ADOQuery.AfterScroll();是什么意思?(在线等)(20分)

  • 主题发起人 主题发起人 fashow
  • 开始时间 开始时间
F

fashow

Unregistered / Unconfirmed
GUEST, unregistred user!
请详细点!
 
有人知道吗?
 
滚动之后呢
 
after an application scrolls to another record
帮助很清楚了
 
我就是想问这个滚动的意思,并不是只想知道结果,能比较详细的解释一下吗?
 
Write an AfterScroll event handler to take specific action immediately after an application scrolls to another record as a result of a call to the First, Last, MoveBy, Next, Prior, FindKey, FindFirst, FindNext, FindLast, FindPrior, and Locate methods. AfterScroll is called after all other events triggered by these methods and any other methods that switch from record to record in the dataset.
 
这个我也会看,你能举个例,说明一下吗?帮助里比较空洞,没感觉
 
记录移动后
 
这个很好尝试呢
你在AfterScroll();里面写个
application.messagebox();
弄个按钮 click事件下面写:
adoquery.next;
 
尝试失败,有错误
afterScroll(application.messagebox();
这样写?
 
有高手能详细的解释的,并有 例子的,请帮忙,初学,不太懂!明天揭贴!
 
服你了
大哥
这个不会
qq:82393832
 
在adoquery控件的事件里面有个afterscroll时间吗
双点了之后,不就是了
里面写就是了
 
其实这个也很好理解,你弄个主从表,把adoquery1设为主表,然事在adoquery1.afterscroll中写adoquery2.的查询语句,比如
adoquery2.disatblecontrols;
adoquery2.close;
adoquery2.sql.clear;
adoquery2.sql.text='select * from b where name='+quotedstr(adoquery1.fieldbyname('name').asstring);
adoquery2.open;
adoquery2.enablecontrols;
 
AfterScroll是事件,当记录指针移动时触发
 
多人接受答案了。
 
后退
顶部