CapValue

Description

Returns or sets the value of the capability specified by
Capability.

Data type

<double>

Syntax

.CapValue = ...;

Remarks

To check a capability, read this property after calling CapGet() method. When setting a capability, set this property before calling CapSet() to actually set the value.

Valid only when the capability has the CapType of TWON_ONEVALUE (5).

Use this property to get/set a capability that has a value type of <double><float>, <int> or even bool (1 means 'true', 0 means 'false'). For <string> type, use CapValueString instead.

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