答案 0 :(得分:3)
在您的登录表单中,创建一个布尔属性Successful
,用于定义完成时登录的状态。
Type
TLoginForm = class(TForm)
...
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
FSuccessful: Boolean;
public
property Successful: Boolean read FSuccessful write FSuccessful;
end;
procedure TLoginForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Successful := "Enter your condition of successful login here";
end;