Functions.SetThousandSep Method (DWord)
Return and optionally change the setting that determines the thousands separation character to be used in numeric-to-string conversion functions.
XSharp.Core (in XSharp.Core.dll) Version: 2.16
Syntax Request Example
nNewSetting AS DWORD
) AS DWORD
public static uint SetThousandSep(
- Type: DWord
An ASCII code representing the new thousands separator.
The initial default depends on SetInternational(), which you can refer to for more information.
is not specified, SetThousandSep() returns the current setting.
is specified, the previous setting is returned.
Normally, numeric values are displayed without thousands separators, unless you explicitly specify the number using pictured output. Pictured output is achieved using a picture clause, which can be defined with the @...SAY...GET command, the Transform() function, or the FieldSpec:Picture property.
The comma character used in your source code to represent the thousands separator in picture clauses is unaffected by this setting, just as the period used to represent the decimal separator is unaffected by SetDecimalSep().
Therefore, your source code will not change based on these settings, as illustrated in the example below.
Examples See Also