I am developing a Delphi application. As a rule I have always listed the self-developed units (and the like) in the 'implementation' section of the form (or unit) - for instance :
unit Form1
..
interface
uses SysUtils, DB, etc...
..
implementation
uses SKForm1, SKUnit1, SKGlobal1, etc...
Due to the fact that I have a class (TCustomer) within one of these listed units (SKGlobal1) and am wanting to pass an instance of it into one of the procedures within 'Form1' I now find myself having to place the reference in the 'interface' part (otherwise the compiler halts due to the fact that the TCustomer class is not seen). The layout then becomes something like :
unit Form1
..
interface
uses SysUtils, DB, SKGlobal1, etc...
..
implementation
uses SKForm1, SKUnit1, etc...
What difference does the placing of the reference to this unit make (placing the reference in the 'interface' section rather than the 'implementation') ?
Thanks in advance.
Steve
unit Form1
..
interface
uses SysUtils, DB, etc...
..
implementation
uses SKForm1, SKUnit1, SKGlobal1, etc...
Due to the fact that I have a class (TCustomer) within one of these listed units (SKGlobal1) and am wanting to pass an instance of it into one of the procedures within 'Form1' I now find myself having to place the reference in the 'interface' part (otherwise the compiler halts due to the fact that the TCustomer class is not seen). The layout then becomes something like :
unit Form1
..
interface
uses SysUtils, DB, SKGlobal1, etc...
..
implementation
uses SKForm1, SKUnit1, etc...
What difference does the placing of the reference to this unit make (placing the reference in the 'interface' section rather than the 'implementation') ?
Thanks in advance.
Steve