谁能告诉我哪错了?

[复制链接]
查看11 | 回复2 | 2011-6-5 00:41:15 | 显示全部楼层 |阅读模式
string ls_username, ls_password
ls_username=trim(sle_1.text)
ls_password=trim(sle_2.text)
if ls_username="" or ls_password="" then
        messagebox("提示","用户名和密码不能为空")
else
select user_id,user_pwd,user_des
into :gs_username,:gs_password,:gs_admin
from user
whereuser_id = :ls_usernameand
         user_pwd = :ls_password ;
if SQLCA.sqlcode=0 then
                open(w_main)
                close(w_login)
        else
                li_n=li_n - 1
                if li_n0 then
                        messagebox("提示","用户名或密码错误")
                else
                        messagebox("提示","错误超过3次,自动退出")
                        halt
                        end if
                end if
        end if

回复

使用道具 举报

千问 | 2011-6-5 00:41:15 | 显示全部楼层
要我做不会这么做的 我测试过你这个 最后缩小出来的图像第二个参数有问题另外 while 后面 是 ==...
回复

使用道具 举报

千问 | 2011-6-5 00:41:15 | 显示全部楼层
这是c语言题吗...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行