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

TExprBuiltInManager.AddCurrencyVariable

Add currency variable to built-in collection

Declaration

Source position: fpexprpars.pp line 821

public function TExprBuiltInManager.AddCurrencyVariable(

  const ACategory: TBuiltInCategory;

  const AName: ShortString;

  AValue: Currency

):TFPBuiltInExprIdentifierDef;

Arguments

ACategory

  

Category for the currency variable

AName

  

Name of the currency variable

AValue

  

Initial currency value

Function result

Returns the added currency variable identifier

Description

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


Documentation generated on: Dec 15 2025