Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TPackages.AddPackage

Adds a new package to the collection

Declaration

Source position: fpmkunit.pp line 1151

public function TPackages.AddPackage(

  const AName: string

):TPackage;

Arguments

AName

  

Name for the new package

Function result

Newly created package object

Description

AddPackage creates and adds a new TPackage object to the collection with the specified name. The method returns the newly created package object for further configuration.

Each package in the collection must have a unique name. The created package can then be configured with targets, dependencies, and other package-specific settings.


Documentation generated on: Dec 15 2025