读书人

请问PB语法有关问题

发布时间: 2012-03-09 21:42:54 作者: rapoo

请教PB语法问题
string shenfen
string zhengjian
string inputmima,correctmima


shenfen=sle_1.text
zhengjian=sle_2.text
inputmima=sle_3.text

select idpassword
into :correctmima
from identity_t
where identity_no=:shenfen and account=:zhengjian ;

if inputmima=correctmima then
open(w_student_mainopen)
else
messagebox("提示","密码错误")

这段代码是想从表identity_t中根据Identity_no和account选出变中存有的响应密码,通过与输入密码比对确定密码是否输入正确
为什么总是报错ERROE C0031:SYNTAX ERROR呢
光标停在第一行,看了好几遍也没看出第一行有什么问题
就算第一行是空行 光标也是提示第一行有错

[解决办法]
if inputmima=correctmima then
open(w_student_mainopen)
else
messagebox("提示","密码错误")
end if

读书人网 >PB

热点推荐