Value Property
Syntax
CWData.Value
Data Type
Purpose
Specifies the value of a CWData object (number, string, date, array, or other variant type).
Remarks
If the CWData object is owned by a CWDataSocket and the CWDataSocket is connected to a data target in a write access mode, setting this property triggers the CWDataSocket.Update method. If you set this property while connected in a write access mode, the CWDataSocket.DataUpdated property is set to True.
If the CWData is owned by a CWDataSocket, reading this property sets the CWDataSocket.DataUpdated property to False.
Example
Dim CWData1 As New CWData
Dim v As Variant
Dim vector(100) As Single
Dim matrix(100, 100) As Long
'CWData can hold many types of data.
CWData1.Value = 1
CWData1.Value = "A String"
CWData1.Value = vector
CWData1.Value = matrix
'CWData can be assigned to a variant
v = CWData1.Value
'Because Value is the default property you can
'omit the "Value" keyword in Visual Basic.
CWData1 = 10
v = CWData1