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

TSources.AddExample

Adds example sources to the collection

Declaration

Source position: fpmkunit.pp line 915

public function TSources.AddExample(

  const AFiles: string

):TSource;

function TSources.AddExample(

  const AFiles: string;

  AInstallSourcePath: string

):TSource;

Arguments

AFiles

  

List of example files to add

Function result

Newly created example source item

Arguments

AFiles

  

List of example files to add

AInstallSourcePath

  

Installation path for example sources

Description

Creates and adds a new example source entry that specifies example program files to be installed in the examples directory. Examples demonstrate usage of the package functionality and serve as learning resources.

Example files help users understand how to properly use the package APIs and provide working code samples for common use cases.


Documentation generated on: Dec 15 2025