Sign in Join
FPDoc Onlineexperiment

TFPExprIdentifierDefs.AddBooleanVariable function

Member of TFPExprIdentifierDefspublicIn unit fpExprPars

Add a boolean variable to the collection

Declaration

pascal
function 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.

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