Difference between revisions of "DefaultFormatSettings"

From Lazarus wiki
Jump to navigationJump to search
m
m (Fixed syntax highlighting)
Line 3: Line 3:
 
'''DefaultFormatSettings''' is a [[Global variables|global variable]] containing settings for the default [[locale]]. Among others it defines the (now deprecated) [[DecimalSeparator]].
 
'''DefaultFormatSettings''' is a [[Global variables|global variable]] containing settings for the default [[locale]]. Among others it defines the (now deprecated) [[DecimalSeparator]].
  
<syntaxhighlight>   
+
<syntaxhighlight lang=pascal>   
 
DefaultFormatSettings : TFormatSettings = (
 
DefaultFormatSettings : TFormatSettings = (
 
     CurrencyFormat: 1;
 
     CurrencyFormat: 1;

Revision as of 22:50, 10 February 2020

English (en) français (fr) русский (ru)

DefaultFormatSettings is a global variable containing settings for the default locale. Among others it defines the (now deprecated) DecimalSeparator.

  
DefaultFormatSettings : TFormatSettings = (
    CurrencyFormat: 1;
    NegCurrFormat: 5;
    ThousandSeparator: ',';
    DecimalSeparator: '.';
    CurrencyDecimals: 2;
    DateSeparator: '-';
    TimeSeparator: ':';
    ListSeparator: ',';
    CurrencyString: '$';
    ShortDateFormat: 'd/m/y';
    LongDateFormat: 'dd" "mmmm" "yyyy';
    TimeAMString: 'AM';
    TimePMString: 'PM';
    ShortTimeFormat: 'hh:nn';
    LongTimeFormat: 'hh:nn:ss';
    ShortMonthNames: ('Jan','Feb','Mar','Apr','May','Jun', 
                      'Jul','Aug','Sep','Oct','Nov','Dec');
    LongMonthNames: ('January','February','March','April','May','June',
                     'July','August','September','October','November','December');
    ShortDayNames: ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
    LongDayNames:  ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
    TwoDigitYearCenturyWindow: 50;
  );

  FormatSettings : TFormatSettings absolute DefaultFormatSettings;