el stamatakos wrote:
Hi R,
Can you do this. I get an error "Circular unit reference to unit1"
 
Thanks
 
Lefti

> Date: Mon, 3 Dec 2007 21:52:08 +0100
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [lazarus] Main Form retreiving data from Child Form
>
> yeah, add unit1 in the "uses" clause of unit2 and add unit2 in the
> "uses" clause of unit1.
>
You need to put them in the  implementation section not the  interface section.  (You may well need to create a uses  clause under implementation, as there isn't one there by default.)  You can then access the other units from methods in the implementation section, without the circular reference error.


cheers,
John Sunderland

 
_________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to