J
jenemery
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure Tlogform.Button1Click(Sender: TObject);
begin
try
if dm.conn.Connected=true then
dm.conn.Connected:=false;
dm.conn.Open;
dm.manager_adoqry.Connection:=dm.conn;
dm.manager_adoqry.Active:=true;
dm.manager_adoqry.close;
dm.manager_adoqry.sql.clear;
dm.manager_adoqry.sql.add('select * from manager where username='+''''+nameedt.text+''''+' and managerpwd='+''''+passwdedt.text+''''+' and power='+''''+'3'+'''');
dm.manager_adoqry.open;
if dm.manager_adoqry.recordcount=1 then
showmessage('yes')
else showmessage('no');
except showmessage('53');
end;
end;
用adoconnection和adoquery做的cs机构。
这是登陆窗口,可是老是 提示:
project manage.exe raised exception class eaccessviolation with message 'access violation at addree 046e9c2 in module 'manage.exe'.read of address oooooo50'.process stopped .use step or run to contnue.
谢谢,虚心请教,分不够再加!
begin
try
if dm.conn.Connected=true then
dm.conn.Connected:=false;
dm.conn.Open;
dm.manager_adoqry.Connection:=dm.conn;
dm.manager_adoqry.Active:=true;
dm.manager_adoqry.close;
dm.manager_adoqry.sql.clear;
dm.manager_adoqry.sql.add('select * from manager where username='+''''+nameedt.text+''''+' and managerpwd='+''''+passwdedt.text+''''+' and power='+''''+'3'+'''');
dm.manager_adoqry.open;
if dm.manager_adoqry.recordcount=1 then
showmessage('yes')
else showmessage('no');
except showmessage('53');
end;
end;
用adoconnection和adoquery做的cs机构。
这是登陆窗口,可是老是 提示:
project manage.exe raised exception class eaccessviolation with message 'access violation at addree 046e9c2 in module 'manage.exe'.read of address oooooo50'.process stopped .use step or run to contnue.
谢谢,虚心请教,分不够再加!