Description

Adds Selection nodes to a specified Database Node's Children Collection.

Return Type

A Long value.   The newly added node (which may have just been created)

Syntax

object.AddToNode (pnodeNewParent, [eLinkMode], [sNodeName])

The AddToNode Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDataNodes.
pnodeNewParentRequired. A McDBNode object. The Database node to which be made a parent of the selected nodes
eLinkModeOptional. A mcDataNodeAddMethods enumeration, as described in settings. Specifies whether a new node be created or the original node will be used.
sNodeNameOptional. A String value.

Settings

The settings for eLinkMode 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.

Remarks

The object stored in the node must have a object handler registered for the it's class
The selection is used. (AllOrNothing)
AllOrNothing: If a node in the selection fails in processing - none of the nodes will be processed.