Skip to content

TExprBuiltInManager.AddIntegerVariable

Add integer variable to built-in collection

Declaration

Source position: fpexprpars.pp line 819

public 
function TExprBuiltInManager.AddIntegerVariable
                                               (const ACategory: TBuiltInCategory; 
                                               const AName: ShortString; 
                                               AValue: Integer)
                                                : TFPBuiltInExprIdentifierDef;

Description

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