Softek Software Barcode Reading Toolkits
HOME PRODUCTS DEVELOPERS STORE ABOUT US
Developer Home
Downloads
Sample Code
Support

Help -> Properties -> Overview

The Softek Barcode Reader SDK extracts barcode information from images and bitmaps.

Overview

The AllowDuplicateValues property can be used to stop the toolkit from reporting duplicate barcodes on the same page in an image. This can be useful for images where the middle section of a barcode is badly damaged or missing. With the property set to TRUE the toolkit may report that there are 2 barcodes of the same type and value. With the property set to FALSE it would assume that the 2 barcodes were part of a single barcode and set the bounding rectangle accordingly.

Default value =    TRUE

Visual Basic using the OCX

[form.]SoftekBarcode.AllowDuplicateValues = value

Visual Basic using the DLL

Private Declare Function stGetAllowDuplicateValues Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetAllowDuplicateValues Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetAllowDuplicateValues (value)
value = stGetAllowDuplicateValues ()

Visual Basic using COM

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

VB.Net using the DLL

Private Declare Function stGetAllowDuplicateValues Lib "SoftekBarcode" () As Boolean
Private Declare Function stSetAllowDuplicateValues Lib "SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetAllowDuplicateValues (value)
value = stGetAllowDuplicateValues ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetAllowDuplicateValues(value)
value = barcode.GetAllowDuplicateValues()

VB.Net using the SoftekBarcodeLib Managed Component

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

Visual C++ Using the OCX

BOOL GetAllowDuplicateValues() ;
void SetAllowDuplicateValues(BOOL value);

Visual C++ Using the DLL

BOOL __stdcall stGetAllowDuplicateValues();
BOOL __stdcall stSetAllowDuplicateValues(BOOL bNewValue);