Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

CapValue Property

Description

Returns or sets the value of the capability specified by Capability property when the value of the CapType property is TWON_ONEVALUE. This is a runtime property.

Data type

Double

Syntax

ObjectName. CapValue

Remarks

Reading this property after calling CapGet() method. After setting this property, call CapSet() method to actually set the value.

The Double type of CapValue property is used to present Double, Single(Float), Long, Integer and even Boolean types. For String type, please use CapValueString property. 

When using Double type for Boolean type, 1 denotes TRUE, 0 denotes FALSE. The constant True/False of Visual Basic can NOT be used.

This is very like CapItems property and CapItemsString property, where CapItemsString property is used to present String type and CapItems is used to present other types. CapItems property and CapItemsString property are used when the container type is TWON_ARRAY or TWON_ENUMERATION.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.

See also

COM Data Type Mapping, Capability property, CapGet(), CapItems property, CapItemsString property, CapSet(), CapType property, CapValueString property

Sample

Please refer to How to Negotiate Capability with Different Capability Container Types.

 

 

 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.