Gets and sets a mask for the sixth bar code in a multicode symbology.
Namespace: Honeywell.Mobility.DataCollection
Assembly: Honeywell.Mobility.DataCollection.FF3.5 (in Honeywell.Mobility.DataCollection.FF3.5.dll)
[C#] public int Mask { get; set; }
[Visual Basic] Public Property Mask As String Get Set
String of up to 26 characters. Wild-card characters include:
The mask is used as a filter to determine which incoming data is used for the sixth bar code in the multicode symbology. No mask is used if there is no character.
[C#]
using Honeywell.Mobility.DataCollection; namespace DataCollection { public partial class frmBarcodeReader : Form { private Honeywell.Mobility.DataCollection.BarcodeReader bcr; public frmBarcodeReader() { InitializeComponent(); try { bcr = new Honeywell.Mobility.DataCollection.BarcodeReader(); bcr.SymbologyOptions.Multicode.Barcode6.Symbology = SymbologyOptions.SymbologyType.All; bcr.SymbologyOptions.Multicode.Barcode6.Length = 25; bcr.SymbologyOptions.Multicode.Barcode6.Mask = "*123*"; } catch (BarcodeReaderException bcrexp) { MessageBox.Show(bcrexp.Message); } } } }
[VB.NET] Imports Honeywell.Mobility.DataCollection Public Class BarcodeReader Private WithEvents bcr As Honeywell.Mobility.DataCollection.BarcodeReader Private Sub BarcodeReader_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try bcr = New Honeywell.Mobility.DataCollection.BarcodeReader() bcr.SymbologyOptions.Multicode.Barcode6.Symbology = SymbologyOptions.SymbologyType.All bcr.SymbologyOptions.Multicode.Barcode6.Length = 25 bcr.SymbologyOptions.Multicode.Barcode6.Mask = "*123*"; Catch bcrexp As BarcodeReaderException MessageBox.Show(bcrexp.Message) End Try End Sub End Class
BarcodeReaderException throws an exception when an error has occurred on bar code read methods and properties.