為了更加安全
procedure TFrmOrderBy
begin
if Length(EdtPassWord
Exit;
with AQuery do
begin
Close;
SQL
SQL
Parameters
Parameters
Open;
//密碼驗證成功進入主窗體
if Fields[
begin
Self
Self
end
else
begin
EdtPassWord
EdtPassWord
ShowMessage(
Inc(LoginCount);
end;
//如果密碼驗證三次不能通過
if LoginCount >=
begin
Application
end;
end;
end;
From:http://tw.wingwit.com/Article/program/Delphi/201311/24878.html