Sign in Join
FPDoc Onlineexperiment

TTargets.AddExampleProgram function

Member of TTargetspublicIn unit fpMkUnit

Adds an example program target to the collection

Declaration

pascal
function AddExampleProgram(const AProgramName: string): TTarget
function AddExampleProgram(const AProgramName: string; 
 const OSes: TOSes): TTarget
function AddExampleProgram(const AProgramName: string; 
 const CPUs: TCPUS; const OSes: TOSes)
: TTarget

Arguments

AProgramName

Name of the example program to create

OSes

Target operating systems for example program

CPUs

Target CPU architectures for example program

Function result

Newly created example program target

Description

Creates and adds a new example program target that demonstrates package functionality through executable sample applications.

Example programs provide working demonstrations of package features and serve as practical documentation for developers.

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