You need to tell the compiler that tha class exists by putting a class
definition (with no properties etc) in before
the real calss definitions.

eg.

...

TRelationShip = class;

TStopShape = class
...
end;

TRelationShip = class
...
end;

...



Stacey

> -----Original Message-----
> From: Gareth Cronin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 31 August 2000 2:45 p.m.
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: MS Access
> 
> 
> How does one go about things when 2 classes use each other?
> i.e. each one has properties of the type of the other. The 
> compiler insists that it doesn't know about whichever class 
> is declared last.
> TStopShape has an array property of type TRelationShip
> TRelationShip has two properties of type TStopShape
> ...but beacause TRelationShip is declared first, I get an 
> unknown type error for the former.
> 
> TIA
> 
> Gareth.
> -------------------------------------------
> My PGP public key can be retrieved from:
> http://www.geocities.com/cgarethc/mykey.txt
> -------------------------------------------
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to