On 12 April 2010 14:27, Tomas Hajny <xhaj...@hajny.biz> wrote: > > These are obviously all valid. There's also another possibility though > (having advantages and disadvantages compared to this) - you could have an > include file specifying this define and reference this include file from > all (relevant) source files.
100% correct Tomas, and a very handy option at that. We actually use this method in our company projects. Only downside - don't forget to specify the include file in each and every unit of your project. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal