Previous Next

Remove( ) method (JsonArray)
Removes one or more elements from the JsonArray. All the remaining elements are shifted up and JsonArray:Length is decremented by the number of elements removed.
Return type:
Access:
Applies to:
 
Syntax 
Remove( INPUT index AS INTEGER )
 
 
Remove( INPUT index AS INTEGER,
        INPUT count AS INTEGER )
index
Indicates an INTEGER identifying the element to be removed. Indexing into JsonArray is 1-based.
count
An INTEGER parameter that specifies the number of elements, starting with the element at index, to remove.
A JsonError is raised if:
*
index is less than 1, is greater than the length of the JsonArray, or is the Unknown value (?)
*
count is less than 1 or is the Unknown value (?)
*
The sum of index and count is greater than the length of the JsonArray

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.