Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddIntegerVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add integer variable to built-in collection

Declaration

pascal
function AddIntegerVariable(const ACategory: TBuiltInCategory; 
 const AName: ShortString; AValue: Integer)
: TFPBuiltInExprIdentifierDef

Arguments

ACategory

Category for the integer variable

AName

Name of the integer variable

AValue

Initial integer value

Function result

Returns the added integer variable identifier

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.

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