Changeset 5 for trunk/Packages/Common
- Timestamp:
- Apr 13, 2026, 9:08:21 AM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/Packages/Common/XML.pas (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/XML.pas
r1 r5 26 26 implementation 27 27 28 var 29 XmlFormatSettings: TFormatSettings = ( 30 CurrencyFormat: 1; 31 NegCurrFormat: 5; 32 ThousandSeparator: ','; 33 DecimalSeparator: '.'; 34 CurrencyDecimals: 2; 35 DateSeparator: '-'; 36 TimeSeparator: ':'; 37 ListSeparator: ','; 38 CurrencyString: '$'; 39 ShortDateFormat: 'd/m/y'; 40 LongDateFormat: 'dd" "mmmm" "yyyy'; 41 TimeAMString: 'AM'; 42 TimePMString: 'PM'; 43 ShortTimeFormat: 'hh:nn'; 44 LongTimeFormat: 'hh:nn:ss'; 45 ShortMonthNames: ('Jan','Feb','Mar','Apr','May','Jun', 46 'Jul','Aug','Sep','Oct','Nov','Dec'); 47 LongMonthNames: ('January','February','March','April','May','June', 48 'July','August','September','October','November','December'); 49 ShortDayNames: ('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); 50 LongDayNames: ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); 51 TwoDigitYearCenturyWindow: 50; 52 ); 53 28 54 function ReadDouble(Node: TDOMNode; Name: string; DefaultValue: Double): Double; 29 55 var … … 33 59 NewNode := Node.FindNode(DOMString(Name)); 34 60 if Assigned(NewNode) then 35 Result := StrToFloat(string(NewNode.TextContent) );61 Result := StrToFloat(string(NewNode.TextContent), XmlFormatSettings); 36 62 end; 37 63
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/edc-stats/chrome/site/your_project_logo.png)