The system function JavaLib.remove removes the specified identifier from the EGL Java™ object space. The object related to the identifier is also removed, but only if the identifier is the only one that refers to the object. If another identifier refers to the object, the object remains in the object space and is accessible by way of that other identifier.
JavaLib.remove is one of several Java access functions.
JavaLib.remove(identifier javaObjId in)
This argument is either a string literal or a variable of type CHAR, DBCHAR, MBCHAR, STRING, or UNICODE. The identifier must be cast to objID, as shown in a later example. EGL strips single- and double-byte blanks from the beginning and end of the argument value, which is case sensitive.
JavaLib.remove( (objId)myStoredObject );
No runtime errors are associated with JavaLib.remove.
Related concepts
Related tasks
Syntax diagram for EGL statements and commands