大侠来帮忙做个VF题吧,有关复选框的

来源:百度知道 编辑:UC知道 时间:2024/06/11 02:08:28
设计如图表单,不选中复选框check1时点击退出按钮command1直接退出表单;当选中复选框时,点击按钮可弹出警示框,点击确定按钮时退出,点击取消按钮不结束程序。请编写退出按钮的click事件代码(注:当按确定按钮时,对话框函数的返回值是1,取消按钮是2)

if thisform.check1.value=0
release thisform
else
if messagebox("确实需要退出码?",68,'提示')=6
release thisform
return 1
else
return 2
endif
endif

command1.click()

if check1.value>0
if messagebox("真的要退出吗?")=7
return
endif
endif

thisform.release()