Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddBooleanVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add boolean variable to built-in collection

Declaration

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

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