get_Value method
The get_Value method gets the key value of a term in a dictionary from the Setup DCO.
.NET restriction: For VBScript,
use the Value property instead.
In this sample XML code, RoutingInstructions is the name of the dictionary, which is followed by the key value and word pairs ("None",None, and so on).
<DICT n="RoutingInstructions">
<W v="None">None</W>
<W v="Delete">Delete</W>
<W v="Rescan">Rescan</W>
<W v="Review">Review</W>
</Dict>
Syntax
- C#
string get_Value(int nDictionary, int nIndex)
Arguments
- nDictionary
- The index of the dictionary within the Setup object, where 0 is the first dictionary.
- nIndex
- The index of the term within the dictionary, where 0 is the first term.
C# example
This example gets the key value on the second term in the first dictionary:m_oDCO.ReadSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");
string strDictValue = m_oDCO.SetupObject().get_Value(0, 1);