GetAttribute Method

Measurement Studio User Interface

GetAttribute Method

Syntax

CWData.GetAttribute ( Name, Default)

Return Type

CWData

Purpose

Gets a CWData object for an attribute

Remarks

If the attribute does not exist, the default value passed in is returned.

Parameters

Name As Variant

Name of the 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)

See Also

HasAttribute

GetAttributeNames

DeleteAttribute

SetAttribute