Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact us Request to publish your help manuals Request to remove your help manuals

Introduction
 » Softek Barcode Reader
Barcode Toolkit Overview
 » Toolkit Interfaces
 » Supported Barcode Types
 » Program Sequence
 » Performance Considerations
Barcode Toolkit Examples
 » Visual Basic Using DLL
 » Visual Basic Using OCX
 » VB.Net
 » Borland Delphi
Methods
 » Methods
 » GetBarString
 » GetBarStringPos & GetBarStringRect
 » GetBarStringType
 » GetBarStringDirection
 » ScanBarCode
 » ScanBarCodeFromBitmap
 » ScanBarCodeFromDIB
 » SetScanRect
Properties
 » Properties
 » AllowDuplicateValues
 » BitmapResolution
 » Code39Checksum
 » ColorThreshold
 » ConvertUPCEToEAN13
 » LineJump
 » ErrorCorrection
 » ExtendedCode39
 » MaxLength
 » MinLength
 » MinOccurrence
 » MinSpaceBarWidth
 » MultipleRead
 » NoiseReduction
 » PageNo
 » Pattern
 » PdfBpp
 » PdfDpi
 » Photometric
 » PrefOccurrence
 » QuietZoneSize
 » ReadCodabar
 » ReadCode128
 » ReadCode25
 » ReadCode25ni
 » ReadCode39
 » ReadEAN13
 » ReadEAN8
 » ReadUPCA
 » ReadUPCE
 » ReadPatchCodes
 » ReadPDF417
 » ReadNumeric
 » ScanDirection
 » ShowCheckDigit
 » SkewTolerance
 » TifSplitMode
 » TifSplitPath
 » UseOverSampling
 

PrefOccurrence

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

Barcode Generator Bookkeeping software Barcode software
Business financial software Billing software Accounting software

 

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);

Home | Contact us | Request to publish your help manuals | Request to remove your help manuals