[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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.