VF知识求救
像图中一样,先给表单添加相应的控件。
然后编辑“确认”的click代码:
username1 = alltrim(thisform.mytextbox1.myvalue)
password1 = alltrim(thisform.mytextbox2.myvalue)
username2 = alltrim(thisform.mytextbox1.value)
password2 = alltrim(thisform.mytextbox2.value)
if username1 == username2 and password1 == password2
wait "欢迎使用" window timeout 1
thisform.release
else
thisform.num = thisform.num + 1
if thisform.num = 3
wait "用户名或口令不对,登录失败!" window timeout 1
thisform.release
else
wait "用户名或口令不对,请重新输入" window timeout 1
endif
endif
试一下吧!