首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

请问PB语法有关问题

2012-03-09 
请教PB语法问题string shenfenstring zhengjianstring inputmima,correctmimashenfensle_1.textzhengjian

请教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
 
 

热点排行