Gets information specific to a scanner device.
BarcodeScanner objects
Integer scanner.DeviceInfo ( values [ ] )
Argument |
Description |
---|---|
scanner |
The scanner object associated with the scanner device for which you want to get device-specific parameters |
values [ ] |
An array of integer values of the scanner device that is passed by reference |
Integer. Returns 1 for success or one of the following negative values if an error occurs:
The information retrieved is for a specific device. For the Symbol and Socket scanner devices, the information passed to the values array is shown in Table 10-2.
The following example retrieves the major and minor version numbers of the physical device driver for the Symbol scanner. It displays them in a list box:
unsignedlong l_info[ ]
integer li_rtn
long ver_major, ver_minor
string stmp
li_rtn = l_scanner.DeviceInfo(l_info)
// physical device driver version
ver_major = INTHIGH( l_info[3] )
ver_minor = INTLOW( l_info[3] )
stmp = string(ver_major) + "." + string(ver_minor)
lb_res.AddItem("Physical device driver: " + stmp )
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |