Porovnávané verzie

Kľúč

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

%JSON_ArrayAppendValue function


Funkcia

Append value to Appends a new value at the end of the JSON array.

Deklarácia


Blok kódu
languageesl
themeConfluence
%JSON_ArrayAppendValue(
   INT in handle
   UNIVAL in value
 )


Parametre


handleHandle to the JSON array
valueValue to be appended


Návratová hodnota

None.

Popis

Function append value to The function appends a new value at the end of the specified JSON array.  Supported Supported types are INT, REAL, BOOL and TEXT.   If you want need to append save a TIME typevalue, you have to must first convert it to TEXT typeand then paste it.

Exception An exception is thrown if you try to append unsupported type, or if provided invalid handle to JSON arraythe value type is unsupported or the handle on the JSON array is invalid.


Príklad


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_CreateArray()

 %JSON_ArrayAppendValue(_arr, "IPESOFT")
 %JSON_ArrayAppendValue(_arr, 365)
 %JSON_ArrayAppendValue(_arr, 1.234)
 %JSON_ArrayAppendValue(_arr, @TRUE)
 %JSON_ArrayAppendValue(_arr, U.uservariable)

 %JSON_FreeArrayHandle(_arr)