Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

5.7.4 GET-ARRAY-ELEMENT method (object method)

Explanation

This method fetches an element from an array object.

Syntax

INVOKE anObject "GET-ARRAY-ELEMENT" USING inx RETURNING elemValue

Parameter and return value

anObject

Specifies the array object from which an element is to be fetched.

inx (attribute: PIC S9(9) COMP-5)

Specifies the subscript of the element to be fetched. The subscript begins from~0.

elemValue (attribute: Array element type)

Returns the value of the array element fetched.