how to enable multihelpers class helpers lazarus / 21-General ---------------------------------------------------------------------- mas steindorff · 2026-02-13 01:24 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 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  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 ... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$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 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$modeswitch multihelpers}      without success (as posted in https://forum.lazarus.freepascal.org/in dex.php/topic,64505.msg490557.html#msg490557 can 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 ---------------------------------------------------------------------- dsiders · 2026-02-13 02:35 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $modeswitch multiscopehelpers} I believe thar exists in FPC trunk (3.3.1) only. ---------------------------------------------------------------------- mas steindorff · 2026-02-13 18:03 Quote from: dsiders on February 13, 2026, 03:35:27 amI believe thay exists in FPC trunk (3.3.1) only. thanks for the info. the wiki implied the $modeswitch came with the helpers around 2.2...  . I was wondering why this red word came with a red underline and warning. ---------------------------------------------------------------------- PascalDragon · 2026-02-14 17:30 Quote from: mas steindorff on February 13, 2026, 02:24:59 amI have placed this line at the top of both "helper" units as well as in my .lpr file but it is not affecting anything Aside from the modeswitch MultiHelpers (not MultiScopeHelpers) only existing in 3.3.1, it only needs to be placed in units that need to use multiple helpers, not when declaring them.