Forum Discussion
m_essaid
10 years agoValued Contributor
hi,
I like the "OnlogMessage" event...
I make a : Log.Message('MyTriggerSentence');
And previously I added on the "OnLogMessage" event the following code :
procedure GeneralEvents_OnLogMessage(Sender; LogParams);
var
props, prop;
begin
props:= aqObject.GetProperties(LogParams);
while (props.HasNext) do
begin
prop:= props.Next;
if(prop.Name = 'MessageText') then
begin
if(aqConvert.VarToStr(prop.Value) = 'MyTriggerSentence') then
... your code here...
- m_essaid10 years agoValued Contributor
you can use as many trigger sentences as you want, you just need to organize that in a clean way