| 15 | 
   | 
 implementation | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 17 | 
   | 
 uses | 
 
 
 
 
 
 
 
 
 
 
 
 | 18 | 
 < | 
   ConnectionManager, Math, Classes, TypeDefs, _DataTypes, Forms, StdCtrls; | 
 
 
 
 
 
 
 
 
 
 | 18 | 
 > | 
   ConnectionManager, Math, Classes, TypeDefs, _DataTypes, Forms, StdCtrls, Grids; | 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
   | 
 procedure TFile_SUBT.InitDataFields; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | 
   | 
 var | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 | 
   | 
       AddField(TInt, $00, 'Offset', '', @tempi); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 42 | 
   | 
     end; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 43 | 
   | 
   end; | 
 
 
 
 
 
 
 
 
 | 44 | 
 + | 
   FFileStream.Free; | 
 
 
 
 
 
 
 
 
 | 45 | 
 + | 
   FFileStream := nil; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 46 | 
   | 
 end; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 47 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 49 | 
   | 
 procedure TFile_SUBT.InitEditor; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 50 | 
   | 
 var | 
 
 
 
 
 
 
 
 
 
 
 
 | 51 | 
 < | 
   lab: TLabel; | 
 
 
 
 
 
 
 
 
 
 | 51 | 
 > | 
   grid: TStringGrid; | 
 
 
 
 
 
 
 
 
 
 
 
 | 52 | 
   | 
 begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 | 
   | 
   FEditor := TFrame.Create(nil); | 
 
 
 
 
 
 
 
 
 
 
 
 | 54 | 
 < | 
   lab := TLabel.Create(FEditor); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 | 
 < | 
   lab.Left := 0; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 | 
 < | 
   lab.Top := 0; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 | 
 < | 
   lab.Caption := 'Hello World'; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 | 
 < | 
   FEditor.InsertControl(lab); | 
 
 
 
 
 
 
 
 
 
 | 54 | 
 > | 
   grid := TStringGrid.Create(FEditor); | 
 
 
 
 
 
 | 55 | 
 > | 
   grid.Parent := FEditor; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 | 
   | 
 end; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 | 
   | 
 end. | 
 
 
 
 
 
 
 
 
 
 | 60 | 
 – | 
  |