I know that you can define "custom options" in Lazarus Project/Options/CompilerOptions/CustomOptions/Defines
These can then be used in constructs like this example: {$IFDEF USE_LAZSERIAL} //Code pertaining to LazSerial {$ELSE} //Code pertaining to AsyncPro {$ENDIF} But if I do not want to use Lazarus, how do I set the conditionals I want to use? Something like: {$DEFINE USE_LAZSERIAL} written directly in a source file could perhaps be used? But where do I put this so it will apply to the whole application? And so that Delphi will also read it if I use the source in Delphi... -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus