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

TExprBuiltInManager.AddBooleanVariable

Add boolean variable to built-in collection

Declaration

Source position: fpexprpars.pp line 818

public function TExprBuiltInManager.AddBooleanVariable(

  const ACategory: TBuiltInCategory;

  const AName: ShortString;

  AValue: Boolean

):TFPBuiltInExprIdentifierDef;

Arguments

ACategory

  

Category for the boolean variable

AName

  

Name of the boolean variable

AValue

  

Initial boolean value

Function result

Returns the added boolean variable identifier

Description

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


Documentation generated on: Dec 15 2025