Skip to content

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;

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.