求助:Error c0031:Syntax error??????

sq1127 2006-05-29 10:40:44
string password
if sle_2.text="" then
messagebox("PayAttention!","The user name cant be null")
sle_2.setfocus()
elseif sle_1.text="" then
messagebox("PayAttention!","The password cant be null")
sle_1.setfocus()
else
G_INPUT_TIME=G_INPUT_TIME+1
select pwd
into: password
from login1
where id=:sle_2.text;

IF password=sle_1.text THEN
OPEN(W_MAIN)
CLOSE(w_login)
else
if G_INPUT_TIME>3 THEN
MESSAGEBOX("警告","输入用户口令的次数太多")
close(w_login)
else
messagebox("警告","输入的用户口令有误,请重新输入")
end if
// end if
end if
上面这段程序在保存时总显示两行错误:Error c0031:Syntax error
请问是什么原因呀,怎么回事!好几天了,都没找到答案,劳烦各位高手给指点一下!谢谢了!

...全文
390 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
我自逍遥01 2006-05-30
  • 打赏
  • 举报
回复
9494
shinesky 2006-05-29
  • 打赏
  • 举报
回复
你把倒算第二个end if 注释掉干嘛呀?是少了一个end if,去掉注释就好了

752

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧