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


To make it clearer: in Unit1 you should have:

unit Unit1;

{$mode ..blah blah}

interface

uses Classes,Sysutils,LResources,....blah blah blah;

.....

implementation

uses unit2;

......
end.

In Unit2 you should have:

unit Unit2;

{$mode ..blah blah}

interface

uses Classes,Sysutils,LResources,....blah blah blah;

.....

implementation

uses unit1;

......
end.

This way you avoid circular reference, because the uses clause is not in the interface section but rather in the implementation section.

Giuliano


--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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

Reply via email to