C
Chason
Unregistered / Unconfirmed
GUEST, unregistred user!
试一下这个:(这个我在D4,5都通过的)
implementation
Uses
...
var
srcs:Integer=0;/
procedure Tloginin.BitBtn1Click(Sender: TObject);
begin
srcs:=srcs+1;
if srcs<=3 then
begin
if edit1.text=czymm then
LoginForm.modalresult:=mrok
else
if srcs<3 then
begin
messagedlg('密码不正确,请重新输入!',mtinformation,[mbyes],0);
edit1.Text:='';
edit1.SetFocus;
exit
end
else
begin
messagedlg('密码不正确,将关闭本系统!',mtinformation,[mbyes],0);
Close;
end;
end;
implementation
Uses
...
var
srcs:Integer=0;/
procedure Tloginin.BitBtn1Click(Sender: TObject);
begin
srcs:=srcs+1;
if srcs<=3 then
begin
if edit1.text=czymm then
LoginForm.modalresult:=mrok
else
if srcs<3 then
begin
messagedlg('密码不正确,请重新输入!',mtinformation,[mbyes],0);
edit1.Text:='';
edit1.SetFocus;
exit
end
else
begin
messagedlg('密码不正确,将关闭本系统!',mtinformation,[mbyes],0);
Close;
end;
end;