Like this ---
NOTE: All definitions must be under the same type declaration
type
TClassB = class;
TClassA = class(TPanel)
private
procedure SetClassBReference(Value: TClassB);
public
ClassBReference: TClassB read FClassBReference write
SetClassBReference;
end;
TClassB = class(TComponent)
public
// finish class here
end;
Cheers,
JED
>>
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.
>>
---------------------------------------------------------------------------
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"