boolean Exists()
static boolean Exists( DataObject dobj )
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.
DataObject dobj
The DataObject you want to validate.
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.
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";