The BarcodeScanner is a base class for nonvisual objects that can read and process bar codes. The SymbolBarcodeScanner object and the SocketBarcodeScanner object implement all the methods and properties of this base class.
BarcodeScanner property |
Datatype |
Description |
---|---|---|
ScannerName |
String |
Name of the scanner you are using |
String |
Read-only data in the scanner’s internal buffers at the time of the last RetrieveData call |
|
Integer |
Read-only value with the decoder ID representing the symbology used by the last data read by the scanner |
|
DateTime |
Read-only timestamp of the last scan |
BarcodeScanner event |
Occurs |
---|---|
When the object is created |
|
When the object is destroyed |
|
ScannerInserted |
When the interface layer first recognizes a physical scanner: either on initialization of the scanner or on physical insertion of the scanner |
ScannerRemoved |
When the scanner is physically removed |
When asynchronous data is scanned |
BarcodeScanner function |
Datatype returned |
Description |
---|---|---|
Integer |
Optional method that clears all buffers, detaches from the scanner firmware, and unloads all scanning DLLs. By default, this method is called by the BarcodeScanner object destructor. |
|
String |
Retrieves the short decoder name for the ID value passed as a function argument. |
|
Integer |
Retrieves device-specific settings, such as version numbers. |
|
Integer |
Sets the names of the scanning devices. |
|
Integer |
Enables or disables the decoder whose ID value is passed in a function argument. |
|
Integer |
Flushes any old results in the scan buffers. |
|
Integer |
Gets the array of enabled decoders. |
|
Integer |
Gets the array of supported decoders. |
|
Integer |
Loads the scanning DLLs and connects to the scanner firmware. This is typically the first method called on an object instance. |
|
Integer |
Retrieves the data from the scanner internal buffers. |
|
Integer |
Aborts all outstanding scan requests. |
|
Integer |
Sets the scan for asynchronous operation and an immediate return of scan data. In a typical implementation of this method, the ScanTriggered event sets the rearm flag to “true” for continuous scanning. |
|
Integer |
Sets the timeout period for a synchronous scan. The timeout period is the amount of time allowed to elapse before a scan resumes following a pause in the scanning. |
|
Boolean |
Sets or retrieves the soft trigger feature of a scanner. |
|
Integer |
Returns the scanner status as an integer. |
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |