Description

Opens a Database and Finds a McDBNode for a given path.

Return Type

A McDBNode object.   A McDBNode reference to found McDBNode and relationships specified by lPathDepth.

Syntax

object.GetDBNode (sPath, [pDatabase], [lAncestor], [lPathDepth])

The GetDBNode Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataManager.
sPathRequired. A String value. A given node path (Example: //Database\Folder\Node)
pDatabaseOptional. A McDBDatabase object. A McDBDatabase to be used when sPath does not specify a McDBDatabase.
lAncestorOptional. A Long value. The ancestor exsposed in sPath to find (1=Parent; 2=GrandParent; 1 specifies 'Folder' in sPath example)
lPathDepthOptional. A Long value. The number of parent to children McDBNodes queries to be performed to expose the sPath to the McDBNode.Path property.

Remarks

A needed database will be activated and opened with password prompting when needed. A lPathDepth of 1 is recommend to
expose the correct name for the parent specified by sPath in the McDBNode.Name property.