Explorar o código

* Fix compilation after TJSJSON returns now a JSValue, no longer object

michael %!s(int64=7) %!d(string=hai) anos
pai
achega
961fe77586
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      demo/fpreport/frmmain.pp

+ 1 - 1
demo/fpreport/frmmain.pp

@@ -609,7 +609,7 @@ begin
   console.log('Result of call ',xhr.Status);
   if (xhr.status = 200) then
     begin
-    J:=TJSJSON.parse(xhr.responseText);
+    J:=TJSJSON.parseObject(xhr.responseText);
     A:=TJSObjectDynArray(J.Properties['data']);
     for I:=0 to Length(A)-1 do
       begin