Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%JSON_ArrayGetValue function


Function

Get value at index from Gets the value in the specified item from the JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
UNIVAL %JSON_ArrayGetValue(
    INT in handle, 
    INT in index
 )


Parameters


handleHandle to the parent JSON array.
indexIndex of the value.


Return value

Value of type the BOOL, INT, REAL or TEXT type, or an invalid value.

Description

Function get value at index from The function returns the value in the specified item from the JSON array.

Exception is thrown if object at index is not value, handle to If the handle on the JSON array is invalid or the index is out of rangeis invalid, an exception is thrown.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_ArrayFromString('["IPESOFT"]')
 
 TEXT _txt
 _txt := %JSON_ArrayGetValue(_arr, 1)

 %JSON_FreeArrayHandle(_arr)