Currency_SetNegativeAfterValue()

Examples


The Currency_SetNegativeAfterValue() function defines whether the negative symbol should be placed after the value when the specified multiformat value is applied to a currency field.

Syntax

Currency_SetNegativeAfterValue(multiformat_value, trailing_neg)

Parameters

multiformat_value An integer value that you assign to the currency format being defined. If your application is integrating with Microsoft Dynamics GP, this value must be in the 3000-4999 range. If you’re creating a stand-alone application, this value must be in the 1000-2999 range.

trailing_neg – A boolean value indicating whether the negative symbol used should be placed before or after the currency value:

[spacer]

Value

Description

true

A trailing negative symbol will be used.

false

A leading negative symbol will be used.


Return value

Boolean specified in the trailing_neg parameter.

Comments

If this function is used in conjunction with the Currency_SetNegativeBeforeSymbol() function, the negative symbol placement defined using this function will be used.

If the Currency_SetNegativeParens() function is used to specify that parentheses should be used to denote negative values, or if the operating system’s default is to use parentheses for negative values, this setting will be ignored and parentheses will be used.


Documentation Feedback