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

TDictionary.AddFunction

Adds a function replacement callback to the dictionary

Declaration

Source position: fpmkunit.pp line 581

public procedure TDictionary.AddFunction(

  const AName: string;

  FReplacement: TReplaceFunction

);

Arguments

AName

  

Function name for substitution

FReplacement

  

Function callback for dynamic value substitution

Description

Adds a function callback with the specified name that provides dynamic value generation during string substitution. Functions can accept arguments and return computed values based on runtime conditions.

This enables advanced templating where values are calculated dynamically based on build parameters, system configuration, or package state.


Documentation generated on: Dec 15 2025