This property is obsolete. See the Remarks section below. |
Description
Use the Utilities.NegCurrFormat
property to specify the format string used to convert negative currency values to strings. This format is used, for example, by the Format
and FormatCurr
methods as the currency format.
Declaration
Applies To
The property is applied to the following object:
Property Value
The variable can store one of the following values:
Value | Format | Value | Format |
---|---|---|---|
0 | ($1) | 8 | -1 $ |
1 | -$1 | 9 | -$ 1 |
2 | $-1 | 10 | 1 $- |
3 | $1- | 11 | $ 1- |
4 | (1$) | 12 | $ -1 |
5 | -1$ | 13 | 1- $ |
6 | 1-$ | 14 | ($ 1) |
7 | 1$- | 15 | (1 $) |
By default, NegCurrFormat
holds the value specified by Regional Settings in the Windows Control Panel. To restore this value, call the GetFormatSettings
method.
Remarks
Utilities.NegCurrFormat
is obsolete and is supported for backward compatibility only. To get or set the format of negative currency values, use the aqEnvironment.GetLocaleInfo
and aqEnvironment.SetLocaleInfo
functions with LOCALE_INEGCURR
as the second parameter.
JavaScript, JScript
var neg_curr_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGCURR);
Log.Message(neg_curr_format);
Python
neg_curr_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGCURR)
Log.Message(neg_curr_format)
VBScript
neg_curr_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGCURR)
Log.Message neg_curr_format
DelphiScript
neg_curr_format := aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_INEGCURR);
Log.Message(neg_curr_format);
C++Script, C#Script
var neg_curr_format = aqEnvironment["GetLocaleInfo"](LOCALE_USER_DEFAULT, LOCALE_INEGCURR);
Log["Message"](neg_curr_format);
Or, if you want to convert currency values using locale settings, use the methods and properties of the aqConvert
object. They use locale-specific date formats when parsing values.
See Also
Working With Time
aqConvert.CurrencyToFormatStr Method
aqConvert.CurrencyToStr Method
aqConvert.FloatToStr Method