-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit4.pas
50 lines (41 loc) · 1016 Bytes
/
Unit4.pas
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
44
45
46
47
48
49
50
unit Unit4;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.ExtCtrls, Vcl.DBCtrls,
Vcl.Grids, Vcl.DBGrids, Data.Win.ADODB, Vcl.StdCtrls;
type
TForm4 = class(TForm)
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
ADOTable1: TADOTable;
DataSource1: TDataSource;
Label1: TLabel;
Yenile: TButton;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormActivate(Sender: TObject);
procedure YenileClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
uses Unit1;
{$R *.dfm}
procedure TForm4.YenileClick(Sender: TObject);
begin
AdoTable1.Close;
AdoTable1.Open;
end;
procedure TForm4.FormActivate(Sender: TObject);
begin
AdoTable1.Open;
end;
procedure TForm4.FormClose(Sender: TObject; var Action: TCloseAction);
begin
AdoTable1.Close;
end;
end.