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

TSources.AddExampleFiles

Adds example files matching file mask pattern

Declaration

Source position: fpmkunit.pp line 921

public procedure TSources.AddExampleFiles(

  const AFileMask: string;

  const ASearchPathPrefix: string;

  Recursive: Boolean = False;

  AInstallSourcePath: string = ''

);

Arguments

AFileMask

  

File mask pattern for matching example files

ASearchPathPrefix

  

Path prefix for example file search operations

Recursive

  

Whether to search subdirectories recursively

AInstallSourcePath

  

Installation path for example source files

Description

AddExampleFiles adds example files to the source collection that match the specified file mask pattern. The method scans for files matching AFileMask and adds them to be included with the package as example code.

Example files are typically demonstration code showing how to use the package functionality. They are installed to the specified installation path for reference by package users.


Documentation generated on: Dec 15 2025