GeoGet

Complete geocaching solutions

User Tools

Site Tools


user:skripty:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
user:skripty:functions [2019/03/28 12:49] – [Parsování JSON odpovědi z API GC] gorduser:skripty:functions [2019/03/28 12:50] – [Parsování JSON odpovědi z API GC] gord
Line 257: Line 257:
   try   try
     if(rJson.ParseString(sJson)) then begin     if(rJson.ParseString(sJson)) then begin
-      //odkazujeme se na prislusne pole prvku 'root[i]' a jeho vnorenou hodnotu 'geocacheCode' +      nLogs:=rJSon.AsArraySize('root'); 
-      sGcId:=rJson.asString('root['+IntToStr(i)+'].geocacheCode'); +      for i:=0 to nLogs-1 do begin //zpracujeme vsechny logy 
-      ...+        //odkazujeme se na prislusne pole prvku 'root[i]' a jeho vnorenou hodnotu 'geocacheCode' 
 +        sGcId:=rJson.asString('root['+IntToStr(i)+'].geocacheCode'); 
 +        ... 
 +      end;  
     end;     end;
   finally   finally
user/skripty/functions.txt · Last modified: 2022/06/02 12:43 by geby