ISOBJECT function

Purpose

Determine the current status of a given object variable.

Syntax

oStatus = ISOBJECT(objectvar)

Remarks

ISOBJECT is particularly useful is determining the success or failure of a LET or SET statement.  It returns TRUE (-1) if the object variable contains a valid current reference to an object interface, or FALSE (0) if it contains nothing.

ISOBJECT is the complement to the ISNOTHING function.

Restrictions

objectvar must be an Interface or Dispatch object variable.

See also

DIM, INTERFACE/END INTERFACE, ISNOTHING, OBJECT, SET

Example

DIM oApp AS IAPPDatabase

LET oApp = NEW IAPPDatabase IN "DBApp.0"

IF ISOBJECT(oApp) AND ISFALSE ERR THEN ...