Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Units from within a Unit

Status
Not open for further replies.

KS1

Programmer
Nov 3, 2001
3
GB
I want to put all my code for reuse in a library unit.
However the software I am developing has a number of individual units which work independently and only need to communicate with the parent form. When I try to communicate with the library form from one of these units it cannot see it.

I have placed the Library unit in the uses clause of the calling unit and this does not work.

If I click into the unit that is attached to the form I get the option to 'Use Unit' from the File menu. This option is not available when I am in one of the independant units.

Thanks
 
Resolved:

I can't access a Unit when the functions are not in the interface section.
 
The use unit option makes other units available to the unit you are currently working on. These units are in the implementation section.

Every thing you want other units to see must be in the INTERFACE section S. van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top