Xander van der Merwe wrote:
> You need to define AR in MainFm as well (you cannot define it in
> UserSettingsUn and expect it to be valid in MainFm as well (even if you use
> MainFm in UserSettingsUn).
>
> If you want to only do a define once, you can do all your 'defines' in a
> seperate unit (say MyDefs.pas) and include that unit at the top of all your
> other units {$include MyDefs.pas}.
As I posted just a little time ago (crossed in the mail), what I am wanting to
achieve is the conditional compiling of some of the code in the 'common units',
depending on 'flags' that are set in 'client specific units'.
I could achieve the effect by having the flags conditionally EXECUTING the code
at run time, but I there is a fair amount of this code which for many users is
not used, and I thought it would be nicer to have it excluded at compile time.
is it possible to say something like:
if FLAG_AR_SET then {$DEFINE AR};
in the common units?
I tried this but it doesn't appear that you can use the {$DEFINE AR} within a
procedure.
Maybe I'll just change it all to execution conditions.
Thanks for your help
Mark
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz