V
V
Vladimir Kai2017-03-28 09:16:35
MySQL
Vladimir Kai, 2017-03-28 09:16:35

How to display events from zSQLMonitor in Delphi7 in Memo?

Good afternoon!
I needed to display events from zSQLMonitor from the ZEOSDBO component package in Memo to access MySQL.
Found information that it is possible to load events from normal SQLMonitor as follows:
To display messages, place the Memo component on the form. To fill it, let's create an event handler for the OnLogTrace event of the SQLMonitor1 component with the following code:

Memo1.Clear; 
Memo1.LinesAddString(SQLMonitor1.TraceList);

But the code does not work with the component from ZEOS, since ZEOS TraceList is Integer, not Strings..
Is there another way to implement event loading?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kalapanga, 2017-03-28
@gold_dezmor

Some kind of Integer when:
And for TZLoggingEvent, choose what you need:

function AsString(LoggingFormatter:IZLoggingFormatter = nil): string;

property Category: TZLoggingCategory read FCategory;
property Protocol: string read FProtocol;
property Message: string read FMessage;
property ErrorCode: Integer read FErrorCode;
property Error: string read FError;
property Timestamp: TDateTime read FTimestamp;

AsString probably the most it will be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question