Previous Next

GetLogical( ) method (JsonArray)
Gets the JSON boolean value of one or more elements as a LOGICAL or LOGICAL array.
Return type:
Access:
Applies to:
 
Syntax 
GetLogical( INPUT index AS INTEGER )
 
GetLogical( INPUT index AS INTEGER,
            INPUT count AS INTEGER )
 
When this method is called 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.
index
An INTEGER identifying the value of the element to be returned. Indexing into JsonArrays is 1-based.
count
An INTEGER specifying the number of elements, starting with the element at index, to return in the ABL array.
A JsonError is raised if:
*
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.