Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

JCI_SetObjectArrayElement

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 JCI-object
Array object which is to be modified.

index

Data field of the type JCI-size
Position of the element in the array which is to be set (beginning with 1).

arg

A structure of the form MethodArg
Description of the new value for the array element (see section "Arguments and event values of Java methods").
Only the partial structure CallArg(1) is required.
The only permissible values for ArgType(1) are ARG-OBJECT, ARG-ANUM-STRING, and ARG-NAT-STRING.

res

A structure of the form MethodRes
Error information (output only).


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.