Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Barcode C++ Class Library Help

LBarCode::GetNextDuplicated

Show in webframe

#include "ltwrappr.h"

L_INT LBarCode::GetNextDuplicated (nIndex)

L_INT nIndex;

/* current barcode index */

Returns the index of the next barcode, in the class object's barcode data array, that is a duplicate of the barcode at the specified index.

Parameter

Description

nIndex

Index of the current duplicated barcode. The value returned by LBarCode::GetNextDuplicated will be greater than this value. This index is zero based.

Returns

>=0

Index of the next barcode in the class object's barcode data array that is a duplicate of the barcode at the specified index.

<0

An error occurred. Refer to Return Codes.

Comments

As an example, a call to LBarCode::Read reads ten barcodes into the class object's barcode data array. LBarCode::IsDuplicated is called for the item at index 3 in the array, and TRUE is returned. Therefore one or more barcodes in the array are duplicates of the specified item. To get the total number of barcodes that are duplicates of the specified barcode, use LBarCode::GetDuplicatedCount(3).

Calling LBarCode::GetFirstDuplicated returns the index of the first barcode in the array that is a duplicate of the barcode at index 3 in the array. Suppose this value is 0. The barcode present at index zero in the array is the first duplicate of the barcode at index 3.

Calling LBarCode::GetNextDuplicated with nIndex set to 3 will return the index of the next barcode in the array that is a duplicate of the barcodes at index 0 and 3. Suppose this value is 9. Therefore the barcodes at index 0, index 3, and index 9 of the array are all duplicates.

LBarCode::Read returns the total number of barcodes read.

Required DLLs and Libraries

LTBAR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LBarCode::LBarCode, LBarCode::Read, LBarCode::GetBarCodeDataItem, LBarCode::GetDuplicatedCount, LBarCode::IsDuplicated, LBarCode::GetFirstDuplicated, LBarCode::Write, Class Members

Topics:

Programming with LEADTOOLS Barcode

Barcode Function Functions: Finding DuplicatedBarCodes

Example

For complete sample code refer to BarCode demo.

For an example, refer to LBarCode::GetFirstDuplicated().

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.