Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TExprBuiltInManager.AddFloatVariable

Add float variable to built-in collection

Declaration

Source position: fpexprpars.pp line 820

public function TExprBuiltInManager.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.


Documentation generated on: Dec 15 2025