vf 表单中按钮代码

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:28:41
请高手指教,我这个表单怎么加入在按钮中,command1-6分别为上一条、下一条、增加、保存、删除、导出为excl

上一条:
skip -1
thisform.text1.value=序号
thisform.text2.value=姓名
thisform.text3.value=民族
......(所有的text都写上)
if 性别="男"
thisform.optiongroup1.value=1
else
thisform.optiongroup1.value=0
endif
if 政治面貌="党员"
thisform.optiongroup2.value=1
else
thisform.optiongroup2.value=0
endif
t2=thisform.text2.value
sele 序号,姓名,性别....(写完) from 你的表名 where 姓名=t2 into cursor 'ling'
thisform.grid1.recordsource='ling'
下一条:
skip
(下面都一样)
增加:
t1=thisform.text1.value
......(所有的text都写上)
if thisform.optiongroup1.value=1
性别="男"
else
性别="女"
endif
if thisform.optiongroup2.value=1
政治面貌="党员"
else
政治面貌="无"
endif
太多了,你自己慢慢研究吧...