ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Scanner functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Used to determine if a scanner has a given capability.
Example
MyScanner is Scanner
 
// Indicates whether the scanner supports duplex scanning
Duplex is boolean = MyScanner.Capability(scanCapabilityDuplex)
Syntax
<Result> = <Scanner>.Capacity(<Capacity>)
<Result>: Boolean
  • True if the scanner has the given <Capability>,
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True and ErrorInfo returns the corresponding error message.
<Scanner>: Scanner variable
Name of the Scanner variable initialized with the information of the scanner for which we want to get the capability.
<Capacity>: Integer constant
Information required about the scanner's capability:
scanCapabilityDuplexDetermines if the scanner supports duplex scanning.
scanCapabilityFeederDetermines if the scanner has a feeder.
scanCapabilityFlatbedDetermines if the scanner has a flatbed.
Remarks
You can also get the capabilities of a scanner with <Scanner variable>.Property. This function returns a combination of constants that correspond to the capabilities of the scanner. <Scanner variable>.Capability simplifies the code used to indicate whether the scanner has a given capability.
Component: wd290std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help