procedure TForm2.FormShow(Sender: TObject); var iCount:Integer; begin For iCount:=0 to Screen.FormCount-1 do begin if (Screen.Forms[iCount] <> Form2) and (Screen.Forms[iCount] <> Form1) then Screen.Forms[iCount].Close; end; end;
----------------------------------------------
-
procedure Tfrm1.FormShow(Sender: TObject); var iCount:Integer; begin For iCount:=0 to Screen.FormCount-1 do begin if (Screen.Forms[iCount] <> frm1) and (Screen.Forms[iCount] <> frmm) then Screen.Forms[iCount].Close; end; end;
----------------------------------------------
-