and what about this
if name = 'add to log' then
begin
mainfrm.add2log(p, md.cd, StringToColor(parEx(1,'color')) );
result:='';
end;
I give the good macro syntax, but the macro code has a bug
{.add to log| message blue |
$F00000.} {.add to log| message blue |
ClBlue.}
{.add to log| message green |
$00F000.} {.add to log| message green |
ClGreen.}
{.add to log| message red |
$0000F0.} {.add to log| message red |
ClRed.}
but the macro code has a bug, to correct it:
if name = 'add to log' then
begin
mainfrm.add2log(p, NIL , StringToColor(parEx(1,'color')) );
result:='';
end;
Otherwise the macro does not work when it is used in the hfs.events because there is no active connection during its call
The ideal would be to have as possible syntax:
{.add to log| message blue |
$F00000| message green |
$00F000| message red |
$0000F0.}
And to obtain in the log the result following on a line
00:13:11 message blue message green message redIt is just a little work in more for rejetto in the conception of the procedure add2log() ...
I count on him to take up the challenge, and to find us a solution which is as high as my waits.