我的用户登录界面执行时不能输入密码
SELECT tblpasswordSCAN
IF ALLTRIM(THISFORM.text1.Value)=ALLTRIM(密码)
wait"密码正确,正在加载系统,请等候!"windows timeout 2
flag =.T.
DO FORM Frmmain
thisform.Release
ENDIF
ENDSCAN
IF EOF() AND NOT flag
Messagebox("密码输入错误"+ALLTRIM(STR(Ncount+1))+"次!",64,"密码信息框")
Ncount=Ncount+1
IF Ncount>=3
thisform.SetAll("Enabled",.F.,"Commandbutton")
wait"由于错误次数太多系统即将于3秒后退出,再见!"windows timeout 3
thisform.Release
ENDIF
thisform.text1.Value=""
thisform.text1.SetFocus
ENDIF