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

TFPExprIdentifierDefs.AddCurrencyVariable

Add a currency variable to the collection

Declaration

Source position: fpexprpars.pp line 593

public function TFPExprIdentifierDefs.AddCurrencyVariable(

  const AName: ShortString;

  AValue: Currency

):TFPExprIdentifierDef;

Arguments

AName

  

The name of the currency variable

AValue

  

The currency value of the variable

Function result

Returns the added currency variable identifier

Description

The AddCurrencyVariable method creates and adds a new currency variable identifier to the collection with the specified name and currency value. The variable can then be referenced in expressions to retrieve the monetary value.


Documentation generated on: Dec 15 2025