DataObject.Exists

Prototypes

boolean Exists()

static boolean Exists( DataObject dobj )

Return Value

If the DataObject exists and is valid, the return value is true. If the DataObject does not exist or is not valid, the return value is false.

Parameters

DataObject dobj
The DataObject you want to validate.

Remarks

This method determines whether a given DataObject exists and is valid. An example of a DataObject that exists but is not valid is a DataObject that has been closed with the Close method.

The static version of the method Exists is useful if the object reference might be null.

Example
declare DataObject dobj;
if DataObject.Exists( dobj ) then
    print "DataObject exists"; 
else
    print "DataObject does not exist"; 
dobj = DataObject.Create( "Test" );
if dobj.Exists() then
    print "DataObject exists"; 
else
    print "DataObject does not exist"; 
See Also

DataView.Exists