Porovnávané verzie

Kľúč

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

%JSON_ArrayClear function


Function

Clear Deletes all elements from the JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
%JSON_ArrayClear(
    INT in handle
 )


Parameters


handleHandle to JSON array.


Return value
None.


Description

Funcion clear The function removes all items from JSON array.

Exception is thrown if handle to array is invalidIf it is an invalid handle on a JSON array, an exception is thrown.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_CreateArray()
 
 %JSON_ArraySetLength(_arr, 1)
 %JSON_ArraySetValue(_arr, 1, 1.234)
 %JSON_ArrayClear(_arr)

 %JSON_FreeArrayHandle(_arr)