GetAttribute Method
Syntax
CWData.GetAttribute ( Name, Default)
Return Type
Purpose
Gets a CWData object for an attribute
Remarks
If the attribute doesn't exist, this method returns the default value that you passed in. If the CWData is owned by a CWDataSocket, getting an attribute sets the CWDataSocket.DataUpdated property to False.
Parameters
Name As Variant
Attribute to get.
Default As Variant
Default value to return if the attribute does not exist.
Example
'Get an attribute, or 0 if the attribute does not exist.
Text1.Text = CWDataSocket1.Data.GetAttribute("SampleRate",0)