在FuncCreate中写的代码,我是想在弹出对话框后,点取消后关闭功能,不再弹出主窗口,试了几种办法都不行,抱错,
var
jiansuo : TForm;
begin
jiansuo:=TCHOOSEMONTHMSG.Create(Context);
if jiansuo.ShowModal=business.Forms.Controls.mrOk then
lForm.ShowModal;
else
self.MainForm.Free;//关闭主窗体
end;
jiansuo.Free;
end;
var
jiansuo : TForm;
begin
jiansuo:=TCHOOSEMONTHMSG.Create(Context);
if jiansuo.ShowModal=business.Forms.Controls.mrOk then
jiansuo.ShowModal;
else
self.MainForm.Free;//关闭主窗体
end;
jiansuo.Free;
end;