Hi!
Where it does display ??????
In an application?
In the console?
In a terminal ?
Winni
Both log file and writeln in console
{$IFDEF WriteLnFun}
if FMemo <> nil then
FMemo.Add(utf8decode(msg))
else
WriteLine(utf8decode(msg));
{$Endif}
//FMemo.Add(utf8decode(msg));
{$IFDEF WriteInfoFileFun}
writeWorkLog('{Info}:'+DateTimeToStr(now())+':'+ msg);
{$ENDIF}
the logs is just like this as follow
14-1-20 23:47:43 Log: {Info}:14-1-20 23:47:43:Read parameter ?????? - ????????? value 0 address 1 unit 1
14-1-20 23:47:44 Log: {Info}:14-1-20 23:47:44:Read parameter ?????? - ??????? value 0 address 1 unit 1