注册 登录
编程论坛 PowerBuilder

[求助]密码登录问题

初到PB 发布于 2006-12-23 17:39, 988 次点击
已经通过用ODBC的连接,在登录窗口中,总是提示密码错误,已经检查了,从sql2000数据库中取得的数据和输入的一样,就是老是提示错误,请高人指教。
6 回复
#2
初到PB2006-12-23 23:13

没有人会吗?????????????????

#3
黑暗天使2006-12-28 09:28
把语句发上来看看,你说的不清楚
#4
初到PB2006-12-28 18:06

ls_user=user.text

Select pass

Into : ls_password

From password

where name=:ls_user;

If user.text="" or password.text="" then

messagebox("","用户名或密码不能为空!")

return

End if

if password.text=ls_password then

open(w_main)

close(w_password)

else

messagebox("","用户名或密码错误!")

end if
是和 sql2000 连接的数据库,和PowerBuilder自带的数据库就没有问题

#5
黑暗天使2006-12-29 10:33
提示的错误是什么?
#6
路過2007-01-15 16:15
這麼都沒有下文啦
#7
notbig2007-01-15 23:47


If user.text="" or password.text="" then

messagebox("","用户名或密码不能为空!")

return

End if
ls_user=user.text

Select pass

Into : ls_password

From password

where name=:ls_user;

if trim(password.text)=trim(ls_password) then

open(w_main)

close(w_password)

else

messagebox("","用户名或密码错误!")

end if

1