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_SetStaticField

This function sets the value of a static field of a class.
It is equivalent to the JNI functions SetStatic<type>Field. However, it also offers the option of transferring strings directly.


Call

CALL 'JCI_SetStaticField' USING cObj fID arg res

cObj

Class object

fID

Field ID

arg

New value

res

Result


Arguments

cObj

Data field of the type JCI-object
Class object whose field content is to be set.

fID

Data field of the type JCI-handle
ID of the field whose content is to be set. The field ID must be obtained by calling the function JCI_GetStaticFieldID for the cObj class.

arg

A structure of the form MethodArg
Description of the new value for the field content (see section "Arguments and event values of Java methods").
Only the partial structure CallArg(1) is required.

res

A structure of the form MethodResError 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-ENULLID

fID is JCI-NULL.

JCI-RET-ENULLOBJ

cObj is JCI-NULL.

JCI-RET-EARGUMENT

cObj is not a class object.

JCI-RET-EARGVERS

The statically generated version number in arg 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.