ImageMan ImTwain Control Version 8
SetCapability Method
See Also  Send comments on this topic.
Capability
Specifies the Capability to set.
Value
A Variant containing the Value the Capability should be set to.
DataType
The TWAIN Datatype of the Capability.

Glossary Item Box

Description

Sets a TWAIN Capability in the current scanner session.

Syntax

Visual Basic
Public Function SetCapability( _
   ByVal Capability As Long, _
   ByVal Value As Variant, _
   ByVal DataType As Long _
) As Boolean

Parameters

Capability
Specifies the Capability to set.
Value
A Variant containing the Value the Capability should be set to.
DataType
The TWAIN Datatype of the Capability.

Return Type

Returns True if the Set Capability was successful, otherwise returns false.

Remarks

If the Set Capability fails the method will return False and the LastError property will be set to an Error object describing the error that occurred.

See Also

© 2014 Data Techniques Inc. All Rights Reserved.