Skip to content

TSources.AddExample

Adds example sources to the collection

Declaration

Source position: fpmkunit.pp line 919

public 
function AddExample(const AFiles: string) : TSource;

function AddExample(const AFiles: string; AInstallSourcePath: string)
                    : TSource;

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.