Skip to content

TDictionary.AddVariable

Adds a variable name-value pair to the dictionary

Declaration

Source position: fpmkunit.pp line 584

public 
procedure TDictionary.AddVariable(const AName: string; 
                                 const Value: string);

Description

Adds or updates a variable with the specified name and value in the dictionary. If a variable with the same name already exists, its value is replaced.

Variables are used for static string substitution in configuration files, command line arguments, and file paths.