new ArchValueCurrency(coreExpressionViewModel)
Parameters:
Name | Type | Description |
---|---|---|
coreExpressionViewModel |
object | ( Internal ) an Architect core expression view model. |
Members
-
static, readonly displayTypeName :string
-
Implements override support for the display type name string for this Architect Scripting object.
-
static isArchValueCurrency :boolean
-
Methods
-
setLiteralAmountAndCode(amount, codeopt)
-
Sets the currency value to a literal from the supplied amount and optional ISO 4217 currency code.
Parameters:
Name Type Attributes Description amount
number this value is assigned to the amount property on the currency value. It must be a JavaScript number that when converted to a string does not have e notation.
code
string <optional>
this optional value is assigned to the code property on the currency value. If specified, it must be a valid ISO 4217 code. Currency codes are processed case insensitively. If the supplied value is undefined or null, the currency value will have a NOT_SET String value for the code property.