Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add variable to built-in collection

Declaration

pascal
function AddVariable(const ACategory: TBuiltInCategory; 
 const AName: ShortString; AResultType: TResultType; 
 const AValue: AnsiString)
: TFPBuiltInExprIdentifierDef

Arguments

ACategory

Category for the variable

AName

Name of the variable

AResultType

Result type for the variable

AValue

Initial value for the variable

Function result

Returns the added variable identifier

Description

The AddVariable method creates and adds a new built-in variable to the manager with the specified category, name, and value. The variable becomes available for use in expressions parsed by this manager.

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