if MdiParent.MdiChildCount = 0 then application.Terminate else for i := 0 to MdiParent.MDIChildCount - 1 do begin if MdiParent.MdiChildren[i] = self then begin Close; break; end; end;
if MdiParent.MdiChildCount = 0 then application.Terminate else for i := 0 to MdiParent.MDIChildCount - 1 do begin if MdiParent.MdiChildren[i] = self then begin Close; break; end; end;
if MdiParent.MdiChildCount = 0 then application.Terminate else for i := 0 to MdiParent.MDIChildCount - 1 do begin if MdiParent.MdiChildren[i] = self then begin Close; break; end; end
if MdiParent.MdiChildCount = 0 then application.Terminate else for i := 0 to MdiParent.MDIChildCount - 1 do begin if MdiParent.MdiChildren[i] = self then begin Close; break; end; end
if ActiveMDIChild = nil then Application.Terminate else ActiveMDIChild.Close;
if MdiParent.MdiChildCount = 0 then
application.Terminate
else
for i := 0 to MdiParent.MDIChildCount - 1 do
begin
if MdiParent.MdiChildren[i] = self then
begin
Close;
break;
end;
end;
application.Terminate
else
for i := 0 to MdiParent.MDIChildCount - 1 do
begin
if MdiParent.MdiChildren[i] = self then
begin
Close;
break;
end;
end;
application.Terminate
else
for i := 0 to MdiParent.MDIChildCount - 1 do
begin
if MdiParent.MdiChildren[i] = self then
begin
Close;
break;
end;
end
application.Terminate
else
for i := 0 to MdiParent.MDIChildCount - 1 do
begin
if MdiParent.MdiChildren[i] = self then
begin
Close;
break;
end;
end
Application.Terminate
else
ActiveMDIChild.Close;