MoveIn method

The MoveIn method moves the specified runtime DCO object from the current parent to a different parent.

Syntax

VBScript
oDCO.MoveIn(pNewParent as Object, nIndex as Long) as Boolean.
C#
bool MoveIn(object pNewParent, int nIndex)

Applies to

All objects

Arguments

pNewParent
A valid runtime DCO object as the new parent
nIndex
The index value for the child in the new parent. An index value of -1 places the child at the end.

Returns

True if successful; False otherwise

C# Example

The following example moves the Vendor field from page TM000002 to the end of page TM000001.
m_oDCOField = m_oDCO.FindChild("TM000002").FindChild("Vendor");
m_oDCOPage = m_oDCO.FindChild("TM000001");
m_oDCOField.MoveIn(m_oDCOPage, -1);