Hi folks,

You don't think you need any include file or any thing like that at all.
Just define one or more compiler directives at project level. To do this,
select from the Delphi menu Project/Options and select the tab
Directories/Conditionals and write the compiler directive in "Conditional
defines:" e.g. "AR".

You can define more than one compiler directive using a semi-colon as a
separator, e.g. "MyProgram; ShowTestResults"

Hoping this helps,

John Christenhusz



> -----Original Message-----
> From: Mark Howard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 17, 1999 5:20 PM
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Conditional Compiling
> 
> 
> 
> 
> Aaron Scott-Boddendijk wrote:
> 
> > > Need some more help please.
> > > I have (for simplicity sake) 2 units UserSettingsUn and MainFm.
> > > In UserSettingsUn I have the following:
> > > unit UserSettingUn;
> > > interface
> > > uses DBTables, DB, Classes, SysUtils, Dialogs, Graphics,
> > >      MainFm, DataMod;
> > > {$DEFINE AR}
> >
> > Defines are per unit not global so you really need to have 
> a *.inc file full of global includes
> > and place it as the 1st line of every unit... Unless it's 
> just a simple conditional in whih
> > case set it in the project options.
> 
> It's just that I had this working two weeks ago (or at least 
> I thought that I did - it appears from
> what you say here, that I can't have)
> I want to be able to include and exclude parts of the code at 
> compile time depending on which
> client this version is for.  If these .inc files will help me 
> can you point me in the direction of
> some help on them, please.
> 
> TIA
> 
> Mark
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to