home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
delphi2
/
dscol.exe
/
16BIT
/
FDSCDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-10-05
|
1KB
|
59 lines
unit Fdscdemo;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, DB, Dscol, DBTables, StdCtrls, DBCtrls, Grids, DBGrids,
ExtCtrls;
type
TForm1 = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
Button1: TButton;
ColumnsDataSource1: TColumnsDataSource;
Table1: TTable;
Table1EmpNo: TStringField;
Table1LastName: TStringField;
Table1FirstName: TStringField;
Table1PhoneExt: TStringField;
Table1HireDate: TDateTimeField;
Table1Salary: TFloatField;
Table1Boss: TStringField;
procedure FormCreate(Sender: TObject);
procedure Button1Click(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
ColumnsDataSource1.SetupColumns;
Table1.Open;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ColumnsDataSource1.ShowFieldsDlg;
end;
procedure TForm1.FormDestroy(Sender: TObject);
begin
Table1.close;
end;
end.