Контрольная работа: Разработка программного комплекса
StringGrid1.Cells[1,0] := 'Образование';
StringGrid1.Cells[2,0] := 'Отношение к службе';
StringGrid1.RowCount := n+1;
for i:=1 to n do
begin
StringGrid1.Cells[0,i] := Workers[i-1].FIO;
StringGrid1.Cells[1,i] := Workers[i-1].Edication;
StringGrid1.Cells[2,i] := Workers[i-1].Armi;
end;
end;
end.
unit Unit6;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, Unit1;
type
TForm6 = class(TForm)
StringGrid1: TStringGrid;
private
{ Private declarations }
public
procedure FillTable(Workers:array of TWorker);
{ Public declarations }
end;
var
Form6: TForm6;
implementation
{$R *.dfm}