Word property
The Word property sets or gets the word value in a dictionary term in the setup DCO file. You can use this property to pass a value to a variable.
VBScript restriction: Because
extended properties are not supported through the C# .NET Interop
interface, you must instead use set_Word or get_Word.
The following sample
setup DCO XML file 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> Datacap uses the key value to identify words in the dictionary that are displayed to an operator during a verification task. Datacap populates the associated field with the word that the operator selects.
Syntax
- VBScript
oSO.Word(nDictionary as Long, nIndex as Long) as String
Type
Read and write.Arguments
nDictionary- The index of the dictionary within the Setup object, where 0 is the first dictionary.
nIndex- The index of the entry within the dictionary, where 0 is the first entry.
VBScript example
This example compares the value of the VendorName field to the seventh entry in the first dictionary in the Setup DCO file:oSO.Word(0,6) = "FreightLiners"
If VendorName = oSO.Word(0,6) then…