bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation DatabarOptions - set options for reading GS1 Databar barcodes

DatabarOptions - set options for reading GS1 Databar barcodes

Overview

The DatabarOptions property can be used to set various options for GS1 Databar recognition. All options are turned on by default, but some applications may find it useful to disable certain features for performance reasons.

The property works as a mask and can be constructed from the following values:

  • 1 = Read the supplementary 2-D portion if indicated by the linkage flag.
  • 2 = Read RSS-14 barcodes
  • 4 = Read RSS-14 Stacked barcodes
  • 8 = Read RSS-Limited barcodes
  • 16 = Read RSS-Expanded barcodes
  • 32 = Read RSS-Expanded Stacked barcodes

Default Value: 255

Visual Basic using the OCX

[form.]SoftekBarcode.DatabarOptions = value

Visual Basic using the DLL

Private Declare Function stGetDatabarOptions Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetDatabarOptions Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetDatabarOptions (value)
value = stGetDatabarOptions ()

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.DatabarOptions = value
value = oBar.DatabarOptions

VB.Net using the DLL

Private Declare Function stGetDatabarOptions Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetDatabarOptions Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetDatabarOptions (value)
value = stGetDatabarOptions ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetDatabarOptions(value)
value = barcode.GetDatabarOptions()

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.DatabarOptions = value
value = barcode.DatabarOptions

Visual C++ Using the OCX

BOOL GetDatabarOptions() ;
void SetDatabarOptions(BOOL value);

Visual C++ Using the DLL

BOOL __stdcall stGetDatabarOptions();
BOOL __stdcall stSetDatabarOptions(BOOL bNewValue);