A unit is a separately compiled module of Delphi code. Delphi uses units for several purposes. Every form has its own unit, and most components (or groups of related components) have their own units as well.
When you create a component, you either create a new unit for the component or add the new component to an existing unit.
New
Unit.
New
Other to display the New Items dialog box, select Delphi Projects
Delphi Files
Unit, and choose OK. The IDE creates a new unit file and opens it in the Code editor.
Open and select the source code unit to which you want to add your component. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|