CapDefaultIndex

Description

Returns the index (0-based, read-only) of the default value of a capability. Then you can find the default value by this index in GetCapItemsString (for CapValueType 'string') or GetCapItems (for CapValueType which is not 'string').

Data type

<int>

Syntax

.CapDefaultIndex;

Remarks

Check this property after calling CapGet().

Valid only when the capability has the CapType of TWON_ENUMERATION (4).

Default value reflects the Data Source's power-on value. It can NOT be set.

When an error occurs, check ErrorCode orErrorStringfor error information.

See also

How to Negotiate Capability with Different Capability Container Types
OpenSource()
CapGet()
CapReset()
CapSet()
CapType