在retrieve后自动触发rowfocuschanged

来源:互联网 发布:csbte武器数据修改 编辑:程序博客网 时间:2024/05/16 06:54

在retrieveStart事件中

 il_上次的当前行=getrow()

 

 在retrieveEnd事件中

if rowcount()>0 then

//必须使用rowcount()函数,

//如使用rowcount参变量,在filter导致primary缓冲区中0行时会出错
   selectrow(1,true)
   if il_上次的当前行=1 then
      post event rowfocuschanged(1)
   end if
end if

 

il_上次的当前行 是为 数据窗口对象 声明的<实例变量>

如果不在RetrieveStart中进行记录, 在dw_1的第二次Retrieve时, 就不会触发rowfocuschanged了

原创粉丝点击