bardecode.com

  • Increase font size
  • Default font size
  • Decrease font size
Home Documentation ErrorCorrection - enable error correction

ErrorCorrection - enable error correction

Overview

Some barcodes cannot be read because the process of scanning or faxing has split or merged bars together. When ErrorCorrection  is set to True to toolkit will, where possible, make a best guess at such barcodes.

Note that this property currently only applies to Code 39 and Code 39 Extended barcodes.

Default Value: False

Visual Basic using the OCX

[form.]SoftekBarcode.ErrorCorrection = value

Visual Basic using the DLL

Private Declare Function stGetErrorCorrection Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetErrorCorrection Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetErrorCorrection (value)
value = stGetErrorCorrection ()

Visual Basic using COM

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

VB.Net using the DLL

Private Declare Function stGetErrorCorrection Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetErrorCorrection Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetErrorCorrection (value)
value = stGetErrorCorrection ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetErrorCorrection(value)
value = barcode.GetErrorCorrection()

VB.Net using the SoftekBarcodeLib Managed Component

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

Visual C++ Using the OCX

BOOL GetErrorCorrection() ;
void SetErrorCorrection(BOOL value);

Visual C++ Using the DLL

BOOL __stdcall stGetErrorCorrection();
BOOL __stdcall stSetErrorCorrection(BOOL bNewValue);