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 >
Wrap
Pascal/Delphi Source File
|
1996-10-14
|
2KB
|
74 lines
unit Folbdemo;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Olbrowse, ExtCtrls, TabNotBk, DB, DBTables,
DBCtrls, Grids, DBGrids;
type
TForm1 = class(TForm)
TabbedNotebook1: TTabbedNotebook;
Panel1: TPanel;
OutlineBrowser1: TOutlineBrowser;
Label1: TLabel;
Label2: TLabel;
TableDepartment: TTable;
DSDepartment: TDataSource;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
LookupOutline1: TLookupOutline;
DSPersonel: TDataSource;
TablePersonel: TTable;
TablePersonelEmpNo: TStringField;
TablePersonelLastName: TStringField;
TablePersonelFirstName: TStringField;
TablePersonelPhoneExt: TStringField;
TablePersonelHireDate: TDateTimeField;
TablePersonelSalary: TFloatField;
TablePersonelBoss: TStringField;
TableDepartmentDepartmentID: TStringField;
TableDepartmentManagerID: TStringField;
TableDepartmentDescription: TStringField;
TableDepartmentOperatingCost: TCurrencyField;
TableDepartmentStaffTurnover: TFloatField;
TableDepartmentStaffSize: TSmallintField;
TableDepartmentDateEstablished: TDateField;
TableDepartmentOwnerDept: TStringField;
Label3: TLabel;
OutlineBrowser3: TOutlineBrowser;
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
begin
TablePersonel.Open;
TableDepartment.Open;
{ Query1.Open;}
end;
procedure TForm1.FormDestroy(Sender: TObject);
begin
{ Query1.Close;}
TablePersonel.Close;
TableDepartment.Close;
end;
end.