How does this work at design time?

Regards Neven
N.K. MacEwan B.E. E&E
[EMAIL PROTECTED]

----- Original Message -----
From: Derricutt, Mark <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Monday, 15 May 2000 12:59
Subject: [DUG]: IFDEF's and 'invalid property value'


> Hiya, I've just changed some of my code to use IFDEF's to allow for some
> conditional stuff, I have in my TformUnitEditor's delcaration:
>
>   ....
>   private
> {$IFDEF USE_ADO}
>     qFields: TADOQuery;
>     qUnits: TADOQuery;
> {$ELSE}
>     qFields: TTable;
>     qUnits: TTable;
> {$ENDIF}
>   ....
>
> Now, when I call TformUnitEditor.Create my app crashes with a "invalid
> property value" error.  I put a breakpoint in TformUnitEditor's OnCreate
> which has more IFDEF stuff to setup the components but Delphi's not even
> getting this far.  Any ideas?
>
> Mark
>
>
> --
> Mark Derricutt   "People in prayer for me, everyone there for me,
> ICQ: 1934853      sometimes I feel I should face this alone, my
> Wrk: 377-9941     soul exposed... it calm's me to know that I
> Fax: 377-9947     won't!" = Dream Theater - Scarred
> DDI: 375-3754
>
> Now Playing: element 101 - keeping secrets
> --------------------------------------------------------------------------
-
>     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