home *** CD-ROM | disk | FTP | other *** search
/ Chip: Shareware for Win 95 / Chip-Shareware-Win95.bin / ostatni / delphi / delphi2 / olbrowse.exe / 16BIT / FOLBDEMO.PAS < prev    next >
Pascal/Delphi Source File  |  1996-10-14  |  2KB  |  74 lines

  1. unit Folbdemo;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Olbrowse, ExtCtrls, TabNotBk, DB, DBTables,
  8.   DBCtrls, Grids, DBGrids;
  9.  
  10. type
  11.   TForm1 = class(TForm)
  12.     TabbedNotebook1: TTabbedNotebook;
  13.     Panel1: TPanel;
  14.     OutlineBrowser1: TOutlineBrowser;
  15.     Label1: TLabel;
  16.     Label2: TLabel;
  17.     TableDepartment: TTable;
  18.     DSDepartment: TDataSource;
  19.     Label4: TLabel;
  20.     Label5: TLabel;
  21.     Label6: TLabel;
  22.     DBGrid1: TDBGrid;
  23.     DBNavigator1: TDBNavigator;
  24.     LookupOutline1: TLookupOutline;
  25.     DSPersonel: TDataSource;
  26.     TablePersonel: TTable;
  27.     TablePersonelEmpNo: TStringField;
  28.     TablePersonelLastName: TStringField;
  29.     TablePersonelFirstName: TStringField;
  30.     TablePersonelPhoneExt: TStringField;
  31.     TablePersonelHireDate: TDateTimeField;
  32.     TablePersonelSalary: TFloatField;
  33.     TablePersonelBoss: TStringField;
  34.     TableDepartmentDepartmentID: TStringField;
  35.     TableDepartmentManagerID: TStringField;
  36.     TableDepartmentDescription: TStringField;
  37.     TableDepartmentOperatingCost: TCurrencyField;
  38.     TableDepartmentStaffTurnover: TFloatField;
  39.     TableDepartmentStaffSize: TSmallintField;
  40.     TableDepartmentDateEstablished: TDateField;
  41.     TableDepartmentOwnerDept: TStringField;
  42.     Label3: TLabel;
  43.     OutlineBrowser3: TOutlineBrowser;
  44.     procedure FormCreate(Sender: TObject);
  45.     procedure FormDestroy(Sender: TObject);
  46.   private
  47.     { Private declarations }
  48.   public
  49.     { Public declarations }
  50.   end;
  51.  
  52. var
  53.   Form1: TForm1;
  54.  
  55. implementation
  56.  
  57. {$R *.DFM}
  58.  
  59. procedure TForm1.FormCreate(Sender: TObject);
  60. begin
  61.   TablePersonel.Open;
  62.   TableDepartment.Open;
  63. {  Query1.Open;}
  64. end;
  65.  
  66. procedure TForm1.FormDestroy(Sender: TObject);
  67. begin
  68. {  Query1.Close;}
  69.   TablePersonel.Close;
  70.   TableDepartment.Close;
  71. end;
  72.  
  73. end.
  74.