Variable property

The Variable property sets or gets the value of a named variable. You can use this property when you first need to obtain a value that you pass afterward to another variable or object, such as a field.

VBScript restriction: Because extended properties are not supported through the C# .NET Interop interface, you must instead use set_Variable or get_Variable.

Syntax

VBScript
oDCO.Variable(lpszName as String) As Variant.

Arguments

lpszName
The name of the variable of which you need to set or get the value.

Applies to

All objects.

Type

Read and write.

VBScript example

This example checks the value of the Handwriting variable. If Handwriting is greater than 0, then the code sets the value of the Checked variable to 1 to indicate that a check box is selected.
If oDCO.Variable("HandWriting") > 0 Then
   WriteLog("HandWriting is TRUE")
End If
oDCO.Variable("Checked") = 1