Sign in Join
FPDoc Onlineexperiment

TExprBuiltInManager.AddCurrencyVariable function

Member of TExprBuiltInManagerpublicIn unit fpExprPars

Add currency variable to built-in collection

Declaration

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

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