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

Help -> Properties -> MinOccurrence

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

MinOccurrence 

Overview

When the OCX scans the image for barcode it counts the number of times each barcode string occurrs. If the count for a string is the same or greater than PrefOccurrence then the barcode string is counted as a positive match. If no string can be found this way then the OCX looks for strings that occurred with a count of at least MinOccurrence and counts these as positive matches.

Default value =  2 

Visual Basic using the OCX

[form.]SoftekBarcode.MinOccurrence = value

Visual Basic using the DLL

Private Declare Function stGetMinOccurrence Lib "SoftekBarcode" () As Integer
Private Declare Function stSetMinOccurrence Lib "SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetMinOccurrence (value)
value = stGetMinOccurrence ()

Visual Basic using COM

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

VB.Net using the DLL

Private Declare Function stGetMinOccurrence Lib "SoftekBarcode" () As Short
Private Declare Function stSetMinOccurrence Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetMinOccurrence (value)
value = stGetMinOccurrence ()

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetMinOccurrence(value)
value = barcode.GetMinOccurrence()

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MinOccurrence = value
value = barcode.MinOccurrence

Visual C++ Using the OCX

int GetMinOccurrence() ;
void SetMinOccurrence (int value);

Visual C++ Using the DLL

short __stdcall stGetMinOccurrence();
short __stdcall stSetMinOccurrence(short nNewValue);