set_Word method

The set_Word method sets the word value in a dictionary term.

.NET restriction: For VBScript, use the Word 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_Word(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.

C# example

This example sets the word 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_Word(0, 1, "Delete");
m_oDCO.WriteSetup("C:\\Datacap\\APT\\dco_APT\\APT.XML");