Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddStringVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add string variable to built-in collection

Declaration

pascal
function AddStringVariable(const ACategory: TBuiltInCategory; 
 const AName: ShortString; 
 const AValue: AnsiString)
: TFPBuiltInExprIdentifierDef

Arguments

ACategory

Category for the string variable

AName

Name of the string variable

AValue

Initial string value

Function result

Returns the added string variable identifier

Description

The AddStringVariable method creates and adds a new string built-in variable to the manager with the specified category, name, and string value. The variable can then be referenced in expressions to retrieve the text value.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.