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

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 =    5

Visual Basic using the OCX

[form.]SoftekBarcode.PrefOccurrence = value

Visual Basic using the DLL

Private Declare Function stGetPrefOccurrence Lib "SoftekBarcode" () As Integer
Private Declare Function stSetPrefOccurrence Lib "SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetPrefOccurrence (value)
value = stGetPrefOccurrence ()  

Visual Basic using COM

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

VB.Net using the DLL

Private Declare Function stGetPrefOccurrence Lib "SoftekBarcode" () As Short
Private Declare Function stSetPrefOccurrence Lib "SoftekBarcode" (ByVal newValue As Short) As Short
stSetPrefOccurrence (value)
value = stGetPrefOccurrence () 

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode
..........
barcode.SetPrefOccurrence(value)
value = barcode.GetPrefOccurrence()

VB.Net using the SoftekBarcodeLib Managed Component

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

Visual C++ Using the OCX

short GetPrefOccurrence() ;
void SetPrefOccurrence (short value) ;

Visual C++ Using the DLL

short __stdcall stGetPrefOccurrence();
short __stdcall stSetPrefOccurrence(short nNewValue);