SetupNode method

The SetupNode method accesses the SetupNode object that is associated with the current object. You can use this method to get the name of the object in the document hierarchy that corresponds to the object in the runtime batch hierarchy.

Syntax

VBScript
oDCO.SetupNode as Object
C#
TDCOLib.DCOSetupNode SetupNode()

Arguments

None.

Returns

The setup object that corresponds to this runtime object. If you created this object dynamically at run time, and the object is not based on a SetupNode, then the method returns nothing (null).

Applies to

All objects.

C# example

This example populates the batch level Setup object and SetupNode object from the Setup DCO file and points m_oDCOSetupNode to the SetupNode object of the Vendor field.
m_oDCO.ReadSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");
TDCOLib.DCOSetupNode m_oDCOSetupNode = m_oDCO.FindChild("TM000001").FindChild("Vendor").SetupNode();