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

TFPExprIdentifierDefs.AddBooleanVariable

Add a boolean variable to the collection

Declaration

Source position: fpexprpars.pp line 590

public function TFPExprIdentifierDefs.AddBooleanVariable(

  const AName: ShortString;

  AValue: Boolean

):TFPExprIdentifierDef;

Arguments

AName

  

The name of the boolean variable

AValue

  

The boolean value of the variable

Function result

Returns the added boolean variable identifier

Description

The AddBooleanVariable method creates and adds a new boolean variable identifier to the collection with the specified name and boolean value. The variable can then be referenced in expressions to retrieve the boolean value.


Documentation generated on: Dec 15 2025