Sign in Join
FPDoc Onlineexperiment

TFPExprIdentifierDefs.AddCurrencyVariable function

Member of TFPExprIdentifierDefspublicIn unit fpExprPars

Add a currency variable to the collection

Declaration

pascal
function 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.

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