MACPAS mode vs OBJFPC mode lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Gilles · 2018-10-18 07:05 I'm coming, slowly but surely, to Object Pascal… I used to use {$MODE MACPAS} but for ObjectPascal, I must use {$MODE OBJFPC} And so : in MACPAS there was a very very very usefull directive : {$SETC bidule := TRUE} which was invoqued later by {$IFC bidule} … {$ENDC} is there any way to have the equivalent under OBJFPC ? ---------------------------------------------------------------------- Thaddy · 2018-10-18 08:03 If you read the users guide you will see how to do that: https://www.freepascal.org/docs- html/current/prog/progsu71.html#x78-770001.2.71 https://www.freepascal.org/docs- html/current/prog/progsu127.html#x140-1410002.4.1 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 {$MACRO ON}{$Define Bidule:=1}begin  {$If Bidule = 1}  writeln(true);  {$else}  writeln(false);    {$ifend}end. ---------------------------------------------------------------------- Gilles · 2018-10-18 10:55 OK Merci  it works so many docs to read… so few time to do it… done : 15588 occurences changed…