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
void STSetParameter(hBarcode, ST_PREF_OCCURRENCE, uint16 *value) ;
void STGetParameter(hBarcode, ST_PREF_OCCURRENCE, uint16 *value) ;
e.g
// Set a value of 3 for PrefOccurrence
#include "barcode.h"
uint16 value = 3 ;
STSetParameter(hBarcode, ST_PREF_OCCURRENCE, &value) ;