Description

Called by AddToNode member of McDataNodes after adding each McDBNode.

Syntax

Private Sub object_BeforeAddNode(pnoderefSelected, pmcdbnodeNewParent, eAddMethod, bCancel)

The BeforeAddNode Event syntax has these parts:

PartDescription
objectA McDataManager object.
pnoderefSelectedA McDataNodeRef object. The 'Selection' McDataNodeRef containing the McDBNode to be added.
pmcdbnodeNewParentA McDBNode object. The proposed new McDBNode parent.
eAddMethodA mcDataNodeAddMethods enumeration, as described in settings. The parent linkage method to be used.
bCancelA Boolean value. Assign to True to disallow this operation.

Settings

The settings for eAddMethod are:

ConstantValueDescription
 mcdatnam_Use_Setting0

No value; use the default method.

 mcdatnam_Alias1

Make a dependancy type link with a new name to the supplied node (children are inherited).

 mcdatnam_ShareData2

Make a link with a new name directly to the supplied node's data (children are Not inherited).

 mcdatnam_Copy3

Make a new McDBNode with a new name and an unsynchronized copy of the supplied node's data.

 mcdatnam_CopyQueryResults4

Copy links when the destination database is the link target otherwise mcdatnam_Copy.