Value property

The Value property sets or gets the key value of a dictionary term in the Setup DCO file. You can use this property when you need 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 the set_Value method or the get_Value method.

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. 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.

<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

VBScript
oSO.Value(nDictionary subsript as Long, nIndex subscript as Long) as String

Type

Read and write.

Arguments

nDictionary
The index of the dictionary in the setup object, where 0 is the first dictionary.
nIndex
The index of the entry in the dictionary, where 0 is the first entry.

VBScript example

This example sets the key value of the seventh entry in the first dictionary to 123.
oSO.Value(0,6) = "123"