[求助]密码登录问题
已经通过用ODBC的连接,在登录窗口中,总是提示密码错误,已经检查了,从sql2000数据库中取得的数据和输入的一样,就是老是提示错误,请高人指教。
2006-12-23 17:39
没有人会吗?????????????????
2006-12-23 23:13
2006-12-28 09:28
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自带的数据库就没有问题
2006-12-28 18:06
2006-12-29 10:33
2007-01-15 16:15
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

2007-01-15 23:47