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

TTargets.AddExampleUnit

Adds an example unit target to the collection

Declaration

Source position: fpmkunit.pp line 865

public function TTargets.AddExampleUnit(

  const AUnitName: string

):TTarget;

function TTargets.AddExampleUnit(

  const AUnitName: string;

  const OSes: TOSes

):TTarget;

function TTargets.AddExampleUnit(

  const AUnitName: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TTarget;

Arguments

AUnitName

  

Unit name for the example

Function result

Newly created example unit target

Arguments

AUnitName

  

Unit name for the example

OSes

  

Target operating systems for example unit

Arguments

AUnitName

  

Unit name for the example

CPUs

  

Target CPU architectures for example unit

OSes

  

Target operating systems for example unit

Description

Creates and adds a new example unit target that demonstrates usage patterns and serves as sample code for package functionality.

Example units are typically installed separately from main package units and provide documentation through working code examples.


Documentation generated on: Dec 15 2025