Bläddra i källkod

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

michael 7 år sedan
förälder
incheckning
961fe77586
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
   console.log('Result of call ',xhr.Status);
   if (xhr.status = 200) then
   if (xhr.status = 200) then
     begin
     begin
-    J:=TJSJSON.parse(xhr.responseText);
+    J:=TJSJSON.parseObject(xhr.responseText);
     A:=TJSObjectDynArray(J.Properties['data']);
     A:=TJSObjectDynArray(J.Properties['data']);
     for I:=0 to Length(A)-1 do
     for I:=0 to Length(A)-1 do
       begin
       begin