sysLib.javaIsObjID

The system function sysLib.javaIsObjID returns a value (1 for true, 0 for false) to indicate whether a specified identifier is in the object space. sysLib.javaIsObjID is one of several Java access functions.


sysLib.javaIsObjID syntax diagram

returnItem

A numeric item that receives one of two values: 1 for true, 0 for false. Use of a non-numeric item causes an error at validation time.

identifier

An identifier that refers to an object in the object space.

This argument is either a string literal or an item of type CHAR, DBCHAR, MBCHAR, or UNICODE. The identifier must be cast to objID. EGL strips single- and double-byte blanks from the beginning and end of the argument value, which is case sensitive.

An example is as follows:

  // test whether an object is non-existent
  // and process accordingly
  isPresent = sysLib.javaIsObjID( (objId)valueId );
  
  if( isPresent = 0 )
    error = 27;
  end 

No run-time errors are associated with sysLib.javaIsObjID.

Related concepts
Java access functions

Related tasks
Syntax diagram

Related reference
Java access (system words)
sysLib.java
sysLib.javaGetField
sysLib.javaIsNull
sysLib.javaRemove
sysLib.javaRemoveAll
sysLib.javaSetField
sysLib.javaStore
sysLib.javaStoreCopy
sysLib.javaStoreField
sysLib.javaStoreNew
sysLib.javaType