Z zyycc Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #1 能否截获TDataSet(TADODataSet)的事件,并在此事件之前或之后加上相应的处理. 因为我想编写相应的数据库控件.
0 011101 Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #2 beforpost afterpost befordelete afterdelete 不知您要哪個?
J jennykiller Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #4 有啊,TDataSet.AfterOpen。
K kouchun Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #5 有啊,TDataSet.AfterOpen,TDataSet.beforeOpen。
Z zyycc Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-16 #6 To:jennykiller 我是想编写一数据库控件,其中继承了TADODataSet,我想在AfterOpen时,会先执行我的一 段代码,而AfterOpen事件留给控件使用者去定义其自己的代码
M mstar Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-17 #7 protected procedure DoAfterOpen; override; .... procedure TObjectDataSet.DoAfterOpen; begin .... ... 做你的事情 inherited DoAfterOpen; end;
protected procedure DoAfterOpen; override; .... procedure TObjectDataSet.DoAfterOpen; begin .... ... 做你的事情 inherited DoAfterOpen; end;
Z zyycc Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-19 #8 谢谢mstar,能就TDataSet的事件触发执行过程解释一下吗?