ObjectExists (open)
Checks if an object exists
Syntax
// Core function, no LOADLIB necessary
BOOLEAN FUNCTION ObjectExists(OBJECT obj)Parameters
OBJECT objObject to check
Return value
BOOLEANReturns TRUE if the object exists
Description
This function is useful to verify the existence of objects, before any action is undertaken on these objects. It returns TRUE for the default value of objects.
Examples
// prints 'No, it does not exist'
OBJECT example1 := DEFAULT OBJECT;
IF ( ObjectExists(example1) )
Print ('Yes, it exists' );
ELSE
Print ("No, it does not exist");