HasAttribute Method

NI DataSocket

HasAttribute Method

Syntax

CWData.HasAttribute ( Name)

Return Type

Boolean

Purpose

Returns True if an attribute exists.

Remarks

If CWData is owned by a CWDataSocket, checking for an attribute sets the CWDataSocket.

Parameters

Name As Variant

Attribute name.

Example

'Check for an attribute.
If CWData1.HasAttribute("SampleRate") Then
   Text1.Text = "Has  attribute"
End If

See Also

DeleteAttribute

GetAttribute

GetAttributeNames