Sign in Join
Wiki copytemporary

DefaultFormatSettings: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: DefaultFormatSettings

OldNewLine
1+**DefaultFormatSettings** is a [[Global variables|global variable]] containing settings for the default [[locale]]. Among others it defines the decimal separator, thereby replacing the (now deprecated) global variable [[DecimalSeparator]].
2+
3+``` pascal
4+
5+DefaultFormatSettings : TFormatSettings = (
6+ CurrencyFormat: 1;
7+ NegCurrFormat: 5;
8+ ThousandSeparator: ',';
9+ DecimalSeparator: '.';
10+ CurrencyDecimals: 2;
11+ DateSeparator: '-';
12+ TimeSeparator: ':';
13+ ListSeparator: ',';
14+ CurrencyString: '$';
15+ ShortDateFormat: 'd/m/y';
16+ LongDateFormat: 'dd" "mmmm" "yyyy';
17+ TimeAMString: 'AM';
18+ TimePMString: 'PM';
19+ ShortTimeFormat: 'hh:nn';
20+ LongTimeFormat: 'hh:nn:ss';
21+ ShortMonthNames: ('Jan','Feb','Mar','Apr','May','Jun',
22+ 'Jul','Aug','Sep','Oct','Nov','Dec');
23+ LongMonthNames: ('January','February','March','April','May','June',
24+ 'July','August','September','October','November','December');
25+ ShortDayNames: ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
26+ LongDayNames: ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
27+ TwoDigitYearCenturyWindow: 50;
28+ );
29+
30+ FormatSettings : TFormatSettings absolute DefaultFormatSettings;
31+```
32+
33+---
34+*From the Free Pascal wiki, page "DefaultFormatSettings", as it stood on 2023-04-06 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history