[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'sysutils' (#rtl)

# TFormatSettings

Record with all the strings that determine formatting

## Declaration

Source position: sysinth.inc line 33

`type TFormatSettings = record`
`CurrencyFormat: Byte;` |  | Currency format string
`NegCurrFormat: Byte;` |  | Negative currency format string
`ThousandSeparator: Char;` |  | Thousands separator character
`DecimalSeparator: Char;` |  | Decimal separator character
`CurrencyDecimals: Byte;` |  | Currency decimals
`DateSeparator: Char;` |  | Date separator character
`TimeSeparator: Char;` |  | Time separator character
`ListSeparator: Char;` |  | List separator character
`CurrencyString: string;` |  | Currency string
`ShortDateFormat: string;` |  | Short date format string
`LongDateFormat: string;` |  | Long Date Format string
`TimeAMString: string;` |  | AM time indicator string
`TimePMString: string;` |  | PM time indicator string
`ShortTimeFormat: string;` |  | Short time format string
`LongTimeFormat: string;` |  | Long time format string
`ShortMonthNames: TMonthNameArray;` |  | Array with short month names
`LongMonthNames: TMonthNameArray;` |  | Array with long month names
`ShortDayNames: TWeekNameArray;` |  | Array with short day names
`LongDayNames: TWeekNameArray;` |  | Long day names
`TwoDigitYearCenturyWindow: Word;` |  | Value for 2 digit year century window
`end;`

## Description

TFormatSettings is a record that contains a copy of all variables which determine formatting in the various string formatting routines. It is used to pass local copies of these values to the various formatting routines in a thread-safe way.

## See also

Format |  | Format a string with given arguments.
FormatDateTime |  | Return a string representation of a TDateTime value with a given format.
FormatFloat |  | Format a float according to a certain mask.

Documentation generated on: May 14 2021