set_Value method
The set_Value method sets the key value in a dictionary term.
.NET restriction: For
VBScript, use the Value instead.
The following example defines one dictionary with four words, where RoutingInstructions is the dictionary name. The text in each set of quotation marks is the key value that is associated with the word that follows it.
<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#
void set_Value(int nDictionary, int nIndex, string pVal)
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.
- pVal
- The key value.
Returns
Nothing
C# example
This example sets the key value on the second term in the first dictionary to Delete:
m_oDCO.ReadSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");
m_oDCO.SetupObject().set_Value(0, 1, "Delete");
m_oDCO.WriteSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");