Sign in Join
FPDoc Onlineexperiment

TPackages.AddPackage function

Member of TPackagespublicIn unit fpMkUnit

Adds a new package to the collection

Declaration

pascal
function 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.