NumOfNodes method
The NumOfNodes method gets the number of documents, pages, fields, or character nodes in the Setup DCO.
Syntax
- VBScript
oSO.NumOfNodes(nType as Long) as Long
- C#
int NumOfNodes(int nType)
Arguments
- nType
- Value indicating the object type:
- 0 = Batch
- 1 = Document
- 2 = Page
- 3 = Field
- 4 = Character
Returns
Value specifying the number of nodes of the specified type.VBScript Example
This example reads the Setup DCO and gets the number of field nodes:Dim Flds
Call oSO.ReadSetup("C:\Datacap\APT\dco_APT\APT.xml")
nFlds = oSO.NumOfNodes(3)
msgbox nFlds
C#
This example reads the Setup DCO and gets the number of field nodes:m_oDCO.ReadSetup("C:\Datacap\APT\dco_APT\APT.xml");
TDCOLib.DCOSetup m_oDCOSetup = m_oDCO.SetupObject();
int numNodes = m_oDCOSetup.NumOfNodes(3);