在数据库vf软件中,怎么制作用密码登陆的登陆界面????急急急

如题所述

设置表(密码表)里面添加字段用户名和密码用于你存储密码和用户名的!新建表单调用数据环境添加密码表,添加窗体控件combo1、text1、spinner1、command1,并在command1的click过程加入命令:locate all for alltrim(密码表.用户名)=alltrim(thisform.combo1.value)
if found()
if alltrim(thisform.text1.value)==alltrim(密码表.密码)
do form 你的表单
thisform.release
else
thisform.spinner1.value=thisform.spinner1.value+1
if thisform.spinner1.value=3
messagebox("对不起口令不正确!"+chr(13)+"对不起,你无权使用!",48,"登入信息")
thisform.release
quit
endif
messagebox("密码错误,请重新输入!",48,"登入信息")
thisform.text1.setfocus
thisform.text1.value=""
thisform.refresh
endif
endif
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网