ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/isqlmonitor/RemoteMonitorFormUnit.pas
Revision: 31
Committed: Tue Jul 14 15:31:25 2015 UTC (8 years, 9 months ago) by tony
Content type: text/x-pascal
File size: 694 byte(s)
Log Message:
Committing updates for Release R1-3-0

File Contents

# User Rev Content
1 tony 31 unit RemoteMonitorFormUnit;
2    
3     {$mode objfpc}{$H+}
4    
5     interface
6    
7     uses
8     Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
9     IBSQLMonitor;
10    
11     type
12    
13     { TForm1 }
14    
15     TForm1 = class(TForm)
16     IBSQLMonitor1: TIBSQLMonitor;
17     Memo1: TMemo;
18     procedure IBSQLMonitor1SQL(EventText: String; EventTime: TDateTime);
19     private
20     { private declarations }
21     public
22     { public declarations }
23     end;
24    
25     var
26     Form1: TForm1;
27    
28     implementation
29    
30     {$R *.lfm}
31    
32     { TForm1 }
33    
34     procedure TForm1.IBSQLMonitor1SQL(EventText: String; EventTime: TDateTime);
35     begin
36     Memo1.Lines.Add(DateTimeToStr(EventTime) + ': ' + EventText);
37     {$IFDEF WINDOWS}
38     Application.ProcessMessages;
39     {$ENDIF}
40     end;
41    
42     end.
43