-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnit9.pas
More file actions
43 lines (34 loc) · 860 Bytes
/
Unit9.pas
File metadata and controls
43 lines (34 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
unit Unit9;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.Grids, Vcl.DBGrids,
Data.Win.ADODB, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.DBCtrls;
type
TForm9 = class(TForm)
ADOTable1: TADOTable;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
Label1: TLabel;
procedure FormActivate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form9: TForm9;
implementation
uses Unit1;
{$R *.dfm}
procedure TForm9.FormActivate(Sender: TObject);
begin
ADOTable1.Open;
end;
procedure TForm9.FormClose(Sender: TObject; var Action: TCloseAction);
begin
ADOTable1.Close;
end;
end.