98
begin
exist:=false;
For i:=0 to Mine.MDIChildCount do
if Mine.MDIChildren[i] is TOptions
then exist:=true;
if exist
then Options.show
else Options:=TOptions.Create(Application);
Options.WindowState:=wsNormal;
Options.Height:=163;
Options.Width:=318;
Options.DBEdit1.SetFocus;
end;
procedure TMine.RepKonExecute(Sender: TObject);
var exist: boolean;
i:integer;
year,month,day:word;
begin
exist:=false;
For i:=0 to Mine.MDIChildCount do
if Mine.MDIChildren[i] is TReportK
then exist:=true;
if exist
then ReportK.show
else ReportK:=TReportK.Create(Application);
ReportK.WindowState:=wsNormal;
ReportK.Height:=202;
ReportK.Width:=372;
//ReportK.ComboBox1.Text:=Mine.DateToStringM(now);
ReportK.Edit2.Text:=Mine.DateToStringY(now);
DecodeDate(date,year,month,day);
ReportK.ComboBox1.ItemIndex:=month-1;
end;