
Symbol.OpenScanner()
Variable1 = Symbol.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.
IF Symbol.GetScanResult() == 0
{
edit_control1 = Symbol.GetBarcode()
edit_control2 = Symbol.GetBarcodeType()
}
Note:
edit_control1, edit_control2 – form controls.
Symbol.CloseScanner()