DeleteAttribute Method
Syntax
CWData.DeleteAttribute Name
Purpose
Deletes an existing attribute if it exists.
Remarks
If the CWData object is owned by a CWDataSocket and the CWDataSocket is connected to a data target in a write access mode, deleting an attribute triggers the CWDataSocket.Update method. If the CWData is owned by a CWDataSocket, deleting an attribute sets the CWDataSocket.DataUpdated property to True.
Parameters
Name As Variant
Name of the attribute to delete.
Example
'Delete an attribute
CWDataSocket1.Data.DeleteAttribute("SampleRate")