我快要被一个问题折磨疯了。。。。
就是通过数据环境把表中的数据移到到表单上来
是一个学生基本情况表
问题是移过来之后编写的命令按钮组click代码如下
n=this.value
do case
case n=1
go top
this.command1.enabled=.t.
this.command2.enabled=.t.
this.command3.enabled=.t.
this.command4.enabled=.t.
case n=2
skip -1
this.command3.enabled=.t.
this.command4.enabled=.t.
if bof()
this.command1.enabled=.f.
this.command2.enabled=.f.
endif
case n=3
skip 1
this.command1.enabled=.t.
this.command2.enabled=.t.
if eof()
this.command3.enabled=.f.
this.command4.enabled=.f.
endif
case n=4
go bottom
this.command1.enabled=.t.
this.command2.enabled=.t.
this.command3.enabled=.t.
this.command4.enabled=.t.
endcase
按钮1:首记录
按钮2:上一页
按钮3:下一页
按钮4:末记录
不知道是代码的问题还是哪里不对了
始终不能翻页
比如总共有4页
确实点击4下下一页以后到顶,按钮3按钮4不能使用灰色状态
但是这4下每一页都显示的是首页的资料
不能实际反映每一页的数据啊
不懂不懂,很困扰,求解答
不胜感激。。。。
就是通过数据环境把表中的数据移到到表单上来
是一个学生基本情况表
问题是移过来之后编写的命令按钮组click代码如下
n=this.value
do case
case n=1
go top
this.command1.enabled=.t.
this.command2.enabled=.t.
this.command3.enabled=.t.
this.command4.enabled=.t.
case n=2
skip -1
this.command3.enabled=.t.
this.command4.enabled=.t.
if bof()
this.command1.enabled=.f.
this.command2.enabled=.f.
endif
case n=3
skip 1
this.command1.enabled=.t.
this.command2.enabled=.t.
if eof()
this.command3.enabled=.f.
this.command4.enabled=.f.
endif
case n=4
go bottom
this.command1.enabled=.t.
this.command2.enabled=.t.
this.command3.enabled=.t.
this.command4.enabled=.t.
endcase
按钮1:首记录
按钮2:上一页
按钮3:下一页
按钮4:末记录
不知道是代码的问题还是哪里不对了
始终不能翻页
比如总共有4页
确实点击4下下一页以后到顶,按钮3按钮4不能使用灰色状态
但是这4下每一页都显示的是首页的资料
不能实际反映每一页的数据啊
不懂不懂,很困扰,求解答
不胜感激。。。。