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_GetStringLength

This function returns the length (number of Unicode characters) of a Java string.
It is equivalent to the JNI function GetStringLength.


Call

CALL 'JCI_GetStringLength' USING sObj len

sObj

String object

len

Length


Arguments

sObj

Data field of the type JCI-object
String object whose length is to be returned.

len

Data field of the type JCI-size
After the function has been successfully executed, the field contains the number of Unicode characters in the string object referenced by sObj.


Return value (RETURN-CODE)

JCI-RET-OK

The call was successful.

JCI-RET-ENOVM

No Java VM has been started.

JCI-RET-ENULLOBJ

sObj is JCI-NULL.

JCI-RET-EARGUMENT

sObj is not a string object.