Description

Determines whether a visible object is linked to a database object without finding the database object.

Return Type

A Boolean value.   True when the visible object is linked to a database object.
Failure Returns False

Failure conditions:
* Invalid argument
* Criteria does not specify a Journal Object.

Syntax

object.ObjectHasDatabase (pUnknown, [lAncestorLevel])

The ObjectHasDatabase Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataJournal.
pUnknownRequired. An IUnknown object. The visible object that may be related to a database object
lAncestorLevelOptional. A Long value. Return the ancestor of the found Journal object (where 1 is the parent).