Symbol Examples

Example 1. Turn the Symbol scanner on.

Symbol.OpenScanner()

Example 2. Perform a scan and display an error if there exists one.

Variable1 = Symbol.Scan()

IF Variable1 <> 0

{

Form.MessageBox("Scan Error code", Variable1, MB_OK)

}

Note:

Example 3. Check the scan result and if successful assign scan values to form controls.

IF Symbol.GetScanResult() == 0

{

   edit_control1 = Symbol.GetBarcode()

   edit_control2 = Symbol.GetBarcodeType()

}

Note:

Example 4. Turn the Symbol scanner off.

Symbol.CloseScanner()