N
nansha
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm7.suiButton1Click(Sender: TObject);
var
results:variant;
begin
count:=count+1;
results:=adotable1.Lookup('yhm',suiedit1.Text,'mm');
if results=suiedit2.Text then
begin
form2.suiButton1.Enabled:=true;
Self.ModalResult:=mrOK;
end
else
begin
showmessage('哈哈,用户名或密码错误!');
if (count=3) then close;
end;
end;
运行时出现错误:跳出一名为Debugger Exception Notification的窗体
窗体内容为:project tianyetel.exe raised exception class EAccessViolation with message 'Accessviolation at address
004F1160 in module 'tianyetel.exe'.READ OF Address 00000328'.
process stoped.Use Step or Run to continue.
不知为什么,我只是想在密码验证后改变另一个窗体的button的enabled属性!
var
results:variant;
begin
count:=count+1;
results:=adotable1.Lookup('yhm',suiedit1.Text,'mm');
if results=suiedit2.Text then
begin
form2.suiButton1.Enabled:=true;
Self.ModalResult:=mrOK;
end
else
begin
showmessage('哈哈,用户名或密码错误!');
if (count=3) then close;
end;
end;
运行时出现错误:跳出一名为Debugger Exception Notification的窗体
窗体内容为:project tianyetel.exe raised exception class EAccessViolation with message 'Accessviolation at address
004F1160 in module 'tianyetel.exe'.READ OF Address 00000328'.
process stoped.Use Step or Run to continue.
不知为什么,我只是想在密码验证后改变另一个窗体的button的enabled属性!