Skip to content

TFormatSettings

Record with all the strings that determine formatting.

Declaration

Source position: sysinth.inc line 36

type
  TFormatSettings = record
    CurrencyFormat: Byte;
    NegCurrFormat: Byte;
    ThousandSeparator: char;
    DecimalSeparator: char;
    CurrencyDecimals: Byte;
    DateSeparator: char;
    TimeSeparator: char;
    ListSeparator: char;
    CurrencyString: string;
    ShortDateFormat: string;
    LongDateFormat: string;
    TimeAMString: string;
    TimePMString: string;
    ShortTimeFormat: string;
    LongTimeFormat: string;
    ShortMonthNames: Array[1..12] of string = string;
    LongMonthNames: Array[1..12] of string = string;
    ShortDayNames: Array[1..7] of string = string;
    LongDayNames: Array[1..7] of string = string;
    TwoDigitYearCenturyWindow: Word;
    class function Invariant : TFormatSettings;
    class function Create : TFormatSettings; overload;
    class function Create(const LocaleName: string) : TFormatSettings; overload;
  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

Name Description
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.