getCurrencyID macro

Use this macro to get the currency ID of a Property the UserArea. This only applies to Properties of type AmountType

string getCurrencyID(long property.node)
Argument Description
Property Node The node of a previously retrieved property. Note that if the given node is not a property, or of a type for which the currency ID attribute is not applicable, the result is unpredictable.

Return value: The currency ID of the given property.

Example:

domain  tcccur currency
domain  tcamnt salary
long    property.node
property.node = getNamedProperty("salary")
if property.node <> 0 then
    salary = val(getPropertyValue(property.node))
    currency = getCurrencyID(property.node)
    if currency <> "USD" then
        txppldll0002.convert.salary(currency, salary)
    endif
    |* Handling for salary ...
endif