Copies the value and attributes from another CWData object.
If the destination CWData is owned by a CWDataSocket and the CWDataSocket is connected to the data target with the cwdsWriteAutoUpdate access mode, copying to the CWData object triggers the CWDataSocket.Update method. If the source CWData is owned by a CWDataSocket, copying from it sets the CWDataSocket.DataUpdated property to False.
Source As CWData
CWData object from which to copy data.
'Copy the current value and attributes from CWDataSocket.Data.
Dim CWData1 As New CWData
'Make some changes to the copy.
CWData1.Value = 1
CWData1.SetAttribute "SampleRate", 10000
'Copy data back to DataSocket.Data.