Skip to content

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;

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.