Hi guys

Am trying to use conditional compiler directives for the first time.

The conditional bit provides for a menuitem which opens a TNotebook
page, report start and finish dates etc are set.  A Run button
(AcctRepBtn) then calls a quick report.

This all works fine until I try to put these bits inside some
conditional compiler codes.
In a UserSettings unit I define {$DEFINE AcctRep}
In the Mainform I have a {$IFDEF AcctRep} and {$ENDIF} around both the
procedure declarations and those procedures in the Implementation part.

What I get - on compilation is "Exception EreadError.  Error reading
AcctRepBtn.Onclick:Invalid Property.

Can sombody please give me a pointer to what I have overlooked or what
sort of situation is likely to give this error.

TIA

Mark

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to