1 |
tony |
31 |
unit Unit1;
|
2 |
|
|
|
3 |
|
|
{$mode objfpc}{$H+}
|
4 |
|
|
|
5 |
|
|
interface
|
6 |
|
|
|
7 |
|
|
uses
|
8 |
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
9 |
|
|
IBServices;
|
10 |
|
|
|
11 |
|
|
type
|
12 |
|
|
|
13 |
|
|
{ TForm1 }
|
14 |
|
|
|
15 |
|
|
TForm1 = class(TForm)
|
16 |
|
|
Button1: TButton;
|
17 |
|
|
IBServerProperties1: TIBServerProperties;
|
18 |
|
|
Memo1: TMemo;
|
19 |
|
|
procedure Button1Click(Sender: TObject);
|
20 |
|
|
procedure FormShow(Sender: TObject);
|
21 |
|
|
private
|
22 |
|
|
{ private declarations }
|
23 |
|
|
public
|
24 |
|
|
{ public declarations }
|
25 |
|
|
end;
|
26 |
|
|
|
27 |
|
|
var
|
28 |
|
|
Form1: TForm1;
|
29 |
|
|
|
30 |
|
|
implementation
|
31 |
|
|
|
32 |
|
|
{$R *.lfm}
|
33 |
|
|
|
34 |
|
|
{ TForm1 }
|
35 |
|
|
|
36 |
|
|
procedure TForm1.FormShow(Sender: TObject);
|
37 |
|
|
begin
|
38 |
|
|
with IBServerProperties1 do
|
39 |
|
|
begin
|
40 |
|
|
Attach;
|
41 |
|
|
FetchVersionInfo;
|
42 |
|
|
Memo1.Lines.Add('Server Version = ' + VersionInfo.ServerVersion);
|
43 |
|
|
Memo1.Lines.Add('Server Implementation = ' + VersionInfo.ServerImplementation);
|
44 |
|
|
Memo1.Lines.Add('Service Version = ' + IntToStr(VersionInfo.ServiceVersion));
|
45 |
|
|
end;
|
46 |
|
|
end;
|
47 |
|
|
|
48 |
|
|
procedure TForm1.Button1Click(Sender: TObject);
|
49 |
|
|
begin
|
50 |
|
|
Close
|
51 |
|
|
end;
|
52 |
|
|
|
53 |
|
|
end.
|
54 |
|
|
|