I have a base class (TBinCmd) for handling command and some responses i.e byte array from another system.
A few of these commands and responses need advanced parsing and records to fully decode the response so I successfully added a helper to the tBinCmd class
TCmd_UART = class helper for TBinCmd // thelper
function Rsp2_UARTStr: string;
Class function GenCmd_UART(name:string):Boolean; // i.e. "115200,n,8,1,0"
function Rsp2_Uart_PramRec(var prm:TBaudPram):Boolean;
end;
the TBaudPram is a record that only aplies to a UART command so it's in it's own unit.
So far so good but when I add another helper in another unit, I get a complier error (as the wiki page says I would get). which helper fails depend on the order in my
uses list but THE WIKI's fix for this error ...
{$modeswitch multiscopehelpers}
is not working for me.
I have placed this line at the top of both "helper" units as well as in my .lpr file but it is not affecting anything
I've also tried
{$modeswitch multihelpers}
without success (as posted in
https://forum.lazarus.freepascal.org/index.php/topic,64505.msg490557.html#msg490557can someone tell me what I'm doing wrong or where to place these modeswitch statements
PS: I also have {$MACRO ON} in these units if that has anything to do with this.
using IDE 3.4 FPC 3.22
Thankyou
MAS