local t
thisform.t=thisform.t+1
select password
locate for alltrim(用户名)=alltrim(thisform.combo1.value)
if found() and 密码=alltrim(thisform.text1.value)
do 菜单1.mpr
release thisform
else
if thisform.t<3
messagebox("用户密码错误!"+chr(13)+"再试一次!",48,"警告")
else
messagebox("对不起,你已经错了三次了!"+chr(13)+"非法用户",48,"严重警告")
release thisform
endif