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: LOGICAL
Access: PUBLIC
Applies
to:
Progress.Json.ObjectModel.JsonArray class
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