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

CapItems Property

Description

Sets or returns a array of values of the capability specified by Capability property, when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION. This is a runtime property.

Data type

Double

Syntax

ObjectName. CapItems(long index)

Remarks

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

This property has a parameter. The data type of the parameter is Long and it is 0-based.

The Double type of CapItems property is used to present Double, Single(Float), Long, Integer and even Boolean types. For String type, please use CapItemsString 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 CapValue property and CapValueString property, where CapValueString property is used to present String type and CapValue is used to present other types. CapValue property and CapValueString property are used when the container type is TWON_ONEVALUE.

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(), CapItemsString property, CapSet(), CapType property, CapValue property, CapValueString property

Sample code

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.