Changeset 16 for trunk/UCore.pas


Ignore:
Timestamp:
Mar 19, 2013, 9:43:12 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Načítání stavu účtu na českých Windows s desetinnou čárkou.
  • Opraveno: Automatický výběr aktivního účtu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r15 r16  
    259259  Mem := TMemoryStream.Create;
    260260  try
    261     FioAPI.Format := DataFormat;
     261    FioAPI.Format := dfXML;
    262262    FioAPI.Token := Account.Token;
    263263    Account.Time := Now;
     
    276276      Node2 := Node.FindNode('closingBalance');
    277277      if Assigned(Node2) then
    278         Account.Balance := StrToFloat(Node2.TextContent);
     278        Account.Balance := StrToFloat(StringReplace(Node2.TextContent, '.',
     279          DefaultFormatSettings.DecimalSeparator, [rfReplaceAll]));
    279280    end else begin
    280281      Account.Number := '';
Note: See TracChangeset for help on using the changeset viewer.