GetNode method
The GetNode method gets an interface to a SetupNode object in the Setup DCO by using an index value. You can use this method when you know the position of the object but not the name.
Syntax
- VBScript
oSO.GetNode(nType as Long, nIndex as Long) child node as node object
- C#
TDCOLib.DCOSetupNode GetNode(int nType, int nIndex)
Arguments
- nType
- Value indicating the component type:
- 0 = Batch
- 1 = Document
- 2 = Page
- 3 = Field
- nIndex
- Value of the node's index, where 0 is the first node of the specified type in the Setup DCO
Returns
The SetupNode object on success; nothing (null) on failure.C# example
The following example gets an interface to the first node of type page from the Setup DCO:m_oDCOSetupNode = m_oDCOSetup.GetNode(2, 0);