Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddFloatVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add float variable to built-in collection

Declaration

pascal
function AddFloatVariable(const ACategory: TBuiltInCategory; 
 const AName: ShortString; AValue: TExprFloat)
: TFPBuiltInExprIdentifierDef

Arguments

ACategory

Category for the float variable

AName

Name of the float variable

AValue

Initial float value

Function result

Returns the added float variable identifier

Description

The AddFloatVariable method creates and adds a new floating-point built-in variable to the manager with the specified category, name, and float value. The variable can then be referenced in expressions to retrieve the floating-point value.

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