CapCurrentIndex

Description

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

Data type

<int>

Syntax

.CapCurrentIndex;

Remarks

Check this property after calling CapGet().

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

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