RAD Studio
ContentsIndex
PreviousUpNext
Creating a Package

Refer to Understanding the structure of a package for more information about the steps outlined here.

To create a package

  1. Choose FileNewOther, select the Package icon under Delphi Projects, and click OK. The generated package appears in the Project Manager. The Project Manager displays a Requires node and a Contains node for the new package.
  2. To add a unit to the contains clause, right-click the contains node in the Project Manager and select Add. In the Add Unit page, type a .pas file name in the Unit file name edit box, or click Browse to browse for the file, and then click OK. The unit you've selected appears under the Contains node in the Project Manager. You can add additional units by repeating this step.
  3. To add a package to the requires clause, right-click the requires node in the Project Manager and select Add Reference. In the Requires page, type a .dcp file name in the Package name edit box, or click Browse to browse for the file, and then click OK. The package you've selected appears under the Requires node in the Project Manager. You can add additional packages by repeating this step.
  4. In the Project Manager, right-click your package and select Compile.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!