Skip to content

DF_THOUSANDS_SEPARATOR

See Also

Description

The decimal ASCII value of the character to use to separate every three integer positions of a number.

Level

Global

Type

Numeric, temporary

Access

Read / Write

Values

0 - 255

Remarks

DF_THOUSANDS_SEPARATOR allows the character used to separate every three digits in large numbers to be set. By default, the DF_THOUSANDS_SEPARATOR will conform to the regional settings on the machine. Windows visual controls also use the regional settings.

The thousands separator is used when using the print command. The print command is only used with legacy style reports that use screen images for output formatting, such as the BasicReport class; most DataFlex reports do not use this technique (or this command).

Example

Procedure ShowFormats
    Integer iDateFormat
    String sDateFormat
    Integer iDateSep
    Integer iDecimalSep
    Integer iThousandSep

    Get_Attribute DF_DATE_FORMAT To iDateFormat
    Get_Attribute DF_DATE_SEPARATOR To iDateSep
    Get_Attribute DF_DECIMAL_SEPARATOR To iDecimalSep
    Get_Attribute DF_THOUSANDS_SEPARATOR To iThousandSep

    If (iDateFormat = DF_DATE_USA) ;
        Move "USA" To sDateFormat
    Else If (iDateFormat = DF_DATE_EUROPEAN) ;
        Move "European" To sDateFormat
    Else If (iDateFormat = DF_DATE_MILITARY) ;
        Move "Military" To sDateFormat
    Else ;
        Move "Unknown" To sDateFormat

    Send Info_Box ("Formats:\nDate:" * sDateFormat + ;
                    "\nDate separator:" * Character(iDateSep) + ;
                    "\nDecimal separator:" * Character(iDecimalSep) + ;
                    "\nThousand separator:" * Character(iThousandSep))
End_Procedure // ShowFormats

This example obtains the date and number format in use by DataFlex and then pops up a message box that displays a message showing which format is in use.