大家帮我看看这段代码!谢谢
string pass_word,usename
// Profile dbname
SQLCA.DBMS = "MSS Microsoft SQL Server"
SQLCA.Database = "dnname"
SQLCA.LogPass = "123"
SQLCA.ServerName = "P-X2O7S92KDMR56"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Async=1"
connect;
SELECT table.yhm,
table.mm
INTO :usename, :pass_word
FROM table
WHERE table.yhm=:sle_1.text;
if sle_1.text="" or sle_2.text="" then
messagebox(" 错误!","用户或密码不能为空!",exclamation!,ok!,2)
disconnect;
else
if usename=sle_1.text and pass_word=sle_2.text then
open(w_first_window)
close(parent);
else
messagebox(" 错误!","用户或密码错误,请重新输入!",exclamation!,ok!,2)
disconnect;
end if
end if
为什么系统老是告诉我:table 旁边有语法错误呢?
WHERE table.yhm=:sle_1.text; 这句话有什么错误,还请高人指点哦。。