Контрольная работа: Разработка программного комплекса
end
else
if ComboBox1.ItemIndex = 4 then
begin
SetLength(Workers, StringGrid1.RowCount - 2);
for i := 1 to StringGrid1.RowCount - 2 do
begin
TableRowToWorker(i,StringGrid1);
Workers[i-1] :=Worker;
end;
Form7.FillKrug(Workers);
Form7.ShowModal;
end
else
if ComboBox1.ItemIndex = 5 then
begin
SetLength(Workers, StringGrid1.RowCount - 2);
for i := 1 to StringGrid1.RowCount - 2 do
begin
TableRowToWorker(i,StringGrid1);
Workers[i-1] :=Worker;
end;
Form7.FillStolb(Workers);
Form7.ShowModal;
end;
end;
procedure TForm1.FormShow(Sender: TObject);
begin
StringGrid1.Cells[0,0] := 'Фамилия';