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

TExprBuiltInManager.AddVariable

Add variable to built-in collection

Declaration

Source position: fpexprpars.pp line 817

public function TExprBuiltInManager.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.


Documentation generated on: Dec 15 2025