求教 PB9.0编程 关于 SELECT INTO FORM WHERE 语句
stringG_USERIDstringG_PASSWORDG_USERID=trim(sle_1.text)G_PASSWORD=trim(sle_2.text)ifG...
string G_USERID
string G_PASSWORD
G_USERID = trim(sle_1.text)
G_PASSWORD =trim(sle_2.text)
if G_USERID="" or G_PASSWORD ="" then
messagebox(" 警告!","账号或密码不能为空")
return
end if
SELECT PASSWORD
INTO: PASSWORD_NEW (<-错)
FROM USER_PASSWORD
WHERE USERID = G_USERID; (<-错)
IF G_PASSWORD=PASSWORD_NEW THEN
OPEN(w_main)
CLOSE(w_login)
ELSE
MESSAGEBOX("警告!","输入的账号口令有误,请重新输入")
END IF
end if (<- 错)
错误信息如下:
warning c0014 undefined variable : password_new
database c0038 列名'g_userid'无效
error c0031 syntax error 展开
string G_PASSWORD
G_USERID = trim(sle_1.text)
G_PASSWORD =trim(sle_2.text)
if G_USERID="" or G_PASSWORD ="" then
messagebox(" 警告!","账号或密码不能为空")
return
end if
SELECT PASSWORD
INTO: PASSWORD_NEW (<-错)
FROM USER_PASSWORD
WHERE USERID = G_USERID; (<-错)
IF G_PASSWORD=PASSWORD_NEW THEN
OPEN(w_main)
CLOSE(w_login)
ELSE
MESSAGEBOX("警告!","输入的账号口令有误,请重新输入")
END IF
end if (<- 错)
错误信息如下:
warning c0014 undefined variable : password_new
database c0038 列名'g_userid'无效
error c0031 syntax error 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询