Currency_SetNegativeBeforeSymbol()

Examples


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

Syntax

Currency_SetNegativeBeforeSymbol(multiformat_value, neg_position)

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.

neg_position – A boolean value indicating the positioning of a leading negative symbol:

[spacer]

Value

Description

true

A leading negative symbol will be placed before a leading currency symbol.

false

A leading negative symbol will be placed after a leading currency symbol.


Return value

Boolean specified in the neg_position parameter.

Comments

If this function is used, it will be overridden by the following settings if they are used and set to true:

 

If the operating system’s default format for currency values uses parentheses to denote a negative currency value, you must set the Currency_SetNegativeParens() function to false to override the operating system default. Until this occurs, the negative symbol and negative symbol placement you specify will not be used.

If the operating system’s default format for currency values places the negative symbol after the currency value, you must set the Currency_SetNegativeAfterValue() function to false to override the operating system default. Until this occurs, the negative symbol placement you specify will not be used.


Documentation Feedback