用VF做了一个表单查询,放了两个命令按钮,分别使它们为上一条,下一条的代码怎么写?

[复制链接]
查看11 | 回复1 | 2011-5-23 10:30:33 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-5-23 10:30:33 | 显示全部楼层
我也正在做这样子的一个系统,我的是上一条的是:
select学生表
skip-1
ifbof()
this.enabled=.f.
thisform.commandgroup1.command1.enabled=.f.
endif
thisform.commandgroup1.command3.enabled=.t.
thisform.commandgroup1.command4.enabled=.t.
thisform.text1.value=学生表.学号
thisform.text2.value=学生表.姓名
thisform.text3.value=学生表.性别
thisform.text4.value=学生表.班级
thisform.text5.value=学生表.出生日期
thisform.refresh
下一条的是:
select学生表
skip
ifeof()
this.enabled=.f.
thisform.commandgroup1.command4.enabled=.f.
endif
thisform.commandgroup1.command1.enabled=.t.
thisform.commandgroup1.command2.enabled=.t.
thisform.text1.value=学生表.学号
thisform.text2.value=学生表.姓名
thisform.text3.value=学生表.性别
thisform.text4.value=学生表.班级
thisform.text5.value=学生表.出生日期
thisform.refresh
希望对你有帮助
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行