ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/isqlmonitor/RemoteMonitorFormUnit.pas
Revision: 143
Committed: Fri Feb 23 12:11:21 2018 UTC (6 years, 1 month ago) by tony
Content type: text/x-pascal
File size: 1552 byte(s)
Log Message:
Fixes Merged

File Contents

# Content
1 (*
2 * IBX For Lazarus (Firebird Express)
3 *
4 * The contents of this file are subject to the Initial Developer's
5 * Public License Version 1.0 (the "License"); you may not use this
6 * file except in compliance with the License. You may obtain a copy
7 * of the License here:
8 *
9 * http://www.firebirdsql.org/index.php?op=doc&id=idpl
10 *
11 * Software distributed under the License is distributed on an "AS
12 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13 * implied. See the License for the specific language governing rights
14 * and limitations under the License.
15 *
16 * The Initial Developer of the Original Code is Tony Whyman.
17 *
18 * The Original Code is (C) 2015 Tony Whyman, MWA Software
19 * (http://www.mwasoftware.co.uk).
20 *
21 * All Rights Reserved.
22 *
23 * Contributor(s): ______________________________________.
24 *
25 *)
26
27 unit RemoteMonitorFormUnit;
28
29 {$mode objfpc}{$H+}
30
31 interface
32
33 uses
34 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
35 IBSQLMonitor;
36
37 type
38
39 { TForm1 }
40
41 TForm1 = class(TForm)
42 IBSQLMonitor1: TIBSQLMonitor;
43 Memo1: TMemo;
44 procedure IBSQLMonitor1SQL(EventText: String; EventTime: TDateTime);
45 private
46 { private declarations }
47 public
48 { public declarations }
49 end;
50
51 var
52 Form1: TForm1;
53
54 implementation
55
56 {$R *.lfm}
57
58 { TForm1 }
59
60 procedure TForm1.IBSQLMonitor1SQL(EventText: String; EventTime: TDateTime);
61 begin
62 Memo1.Lines.Add(FormatDateTime('dd/mm/yyyy hh:nn:ss.zzzz',EventTime) + ': ' + EventText);
63 Application.ProcessMessages;
64 end;
65
66 end.
67