Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : GetMemptr( ) method (JsonArray)

GetMemptr( ) method (JsonArray)

Gets the JSON string value of one or more elements as a MEMPTR or MEMPTR array.
Return type: MEMPTR
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonArray class


GetMemptr( INPUT index AS INTEGER )

GetMemptr( INPUT index AS INTEGER,
           INPUT count AS INTEGER )
With one parameter, the value of a single element is returned. Using two parameters directs the AVM to return an ABL array consisting of count elements.
An INTEGER identifying the value of the element to be returned. Indexing into JsonArrays is 1-based.
An INTEGER specifying the number of elements, starting with the element at index, to be returned in the ABL array.
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
*Any element is not a JSON string
*Any element cannot be parsed as a Base-64 encoded string