vfp 关于case命令只读取最后一个的问题

做了一个登陆界面的表单,输入正确的账号密码,但是一直显示账号密码错误
这是我的代码
use 账号信息
locate for 用户类型=thisform.combo1.value
do case
case(账号==thisform.text1.value and 密码==thisform.text2.value and thisform.combo1.value=="管理员1")
do form 管理员界面
thisform.hide
case(账号==thisform.text1.value and 密码==thisform.text2.value and thisform.combo1.value=="管理员2")
do form 管理员界面
thisform.hide
case(账号==thisform.text1.value and 密码==thisform.text2.value and thisform.combo1.value="普通用户")
do form 车次时刻信息查询
thisform.hide
otherwise
messagebox('账号或密码错误!')
endcase
thisform.refresh

img

img

用==能不能去一下空格?或者都加空格成一样长

use 账号信息
locate for allt(用户类型)==allt(thisform.combo1.value) and Allt(账号)==allt(thisform.text1.value) and allt(密码)==allt(thisform.text2.value)
if found()
do case
case thisform.combo1.value=="管理员1"
do form 管理员界面
thisform.hide
case thisform.combo1.value=="管理员2"
do form 管理员界面
thisform.hide
case thisform.combo1.value="普通用户"
do form 车次时刻信息查询
thisform.hide
endcase
else
messagebox('账号或密码错误!')
endif
thisform.refresh