This function sets an element of an object array.
It is equivalent to the JNI function SetObjectArrayElement. However, it also offers the option of transferring strings instead of string objects.
Call
CALL 'JCI_SetObjectArrayElement' USING aObj index arg res
aObj | Array object |
index | Array index |
arg | Argument description |
res | Result description |
Arguments
aObj | Data field of the type |
index | Data field of the type |
arg | A structure of the form |
res | A structure of the form |
Return value (RETURN-CODE)
JCI-RET-OK
The call was successful.
JCI-RET-ENOVM
No Java VM has been started.
JCI-RET-ENULLOBJ
aObj is JCI-NULL.
JCI-RET-EARGUMENT
aObj is not an array object.
JCI-RET-EARGVERS
The statically generated version number in elem is invalid (possibly overwritten).
JCI-RET-ERESVERS
The statically generated version number in res is invalid (possibly overwritten).
JCI-RET-EARGTYPE
The value of the ArgType field is invalid.
JCI-RET-EARGCONV
An error occurred while the argument was being converted.
The ResErrCode field contains a more precise error code.
JCI-RET-EINDAOB
index is less than 1 or greater than the number of elements in the array.
Exceptions
The exceptions generated by the function correspond to those of the JNI function SetObjectArrayElement.