
As of Version 3.5.0., the Scanner object encompasses both the Symbol and Intermec scanner interfaces, the scanner DLLs are now dynamically loaded to a single executable file.
Both Symbol and Intermec objects are now deprecated.
Scanner.OpenScanner()
Note:
This expression should be used in the Action – Open Property of the form. It will trigger the 'Action - On Scan Complete' expression in the foreground form to run when a scan event is triggered, either by the Scanner.Scan() method, or by device hardware.
Variable1 = Scanner.Scan()
IF Variable1 <> 0
{
Form.MessageBox("Scan Error code", Variable1, MB_OK)
}
Note:
Variable1 – Integer form variable used to temporarily store scan result. Scan will return 0 is successful, otherwise an error code.
Add this expression to an action which will trigger the barcode scanning process. The current form's 'Action – On Scan Complete' expression will run after the Scanner.Scan() method executes.
IF Scanner.GetScanResult() == 0
{
edit_control1 = Scanner.GetBarcode()
edit_control2 = Scanner.GetBarcodeType()
}
Note:
edit_control1, edit_control2 – form controls.
This expression should be attached to the Action – On Scan Complete. Please note, the form must be in the foreground for this to occur.
Scanner.CloseScanner()
Note:
This expression can be attached to the Action – Close property of the form to make sure that the scanner port is closed when the form is closed.