Barcode Reader & Decoder Software

Home arrow Barcode Recognition SDK arrow More Info arrow Methods
Home
 
Barcode Recognition SDK
 
 
Barcode Scanner
 
Document Processor
 
Buy Now
  
FAQs
 
Support
 
OnLine Barcode Decoder

Our Barcode Creation Tools:
www.BarcodeTools.com

On-Line Barcode Generator:
www.bcmaker.com

Barcode Generator
BarcodeList Methods


item Method
Allows random access to individual nodes within the collection.

Syntax
object.item(index)
Parameters
indexIndex of the item within the collection. The first item is number zero.
Return Value
Object. Returns IBarcode. Returns Null if the index is out of range.
Example
[Script]

var dec = new ActiveXObject("BarcodeReader.BarcodeDecoder");
var objBarcode;
dec.DecodeFile("c:\\barcodes.jpg");
for (var i=0; i < dec.Barcodes.length; i++)
{
  objBarcode = dec.Barcodes.item(i);
  alert(objBarcode.Text);
}

[Visual Basic]

Dim dec As Object
Set dec = CreateObject("BarcodeReader.BarcodeDecoder")

dec.DecodeFile ("c:\barcodes.jpg")

For i = 0 To dec.Barcodes.length - 1
   Dim bc As Barcode
   Set bc = dec.Barcodes.Item(i)
   MsgBox bc.Text
Next i

Set dec = Nothing



nextNode Method
Returns the next node in the collection.

Syntax
object.nextNode()
Return Value
Object. Returns IBarcode. Returns Null if there is no next node.
Remarks
The first call to nextNode returns the first node in the list. This method returns Null when the current node is the last node or there are no items in the list. The iterator can be reset by calling the reset method.
Example
[Script]

var dec = new ActiveXObject("BarcodeReader.BarcodeDecoder");
var objBarcodeList;
var objBarcode;

dec.LinearFindBarcodes = 7;

dec.DecodeFile("c:\\barcodes.jpg");

objBarcodeList = dec.Barcodes;
for (var i=0; i < objBarcodeList.length; i++)
{
  objBarcode = objBarcodeList.nextNode();
  alert(objBarcode.Text);
}

[Visual Basic]

Dim dec As Object
Set dec = CreateObject("BarcodeReader.BarcodeDecoder")
dec.LinearFindBarcodes = 7

dec.DecodeFile ("c:\barcodes.jpg")

Dim bl As BarcodeList
Set bl = dec.Barcodes
For i = 0 To bl.length - 1
  MsgBox bl.nextNode.Text
Next i

Set dec = Nothing

[C/C++]

#include <crtdbg.h>
#include <atlcomcli.h>

#import "progid:BarcodeReader.BarcodeDecoder" no_namespace

int _tmain(int argc, _TCHAR* argv[])
{
   HRESULT hr = ::CoInitialize( NULL );
   _ASSERTE( SUCCEEDED(hr) );

   CComPtr<IBarcodeDecoder> pIBarcodeDecoder;
   hr = pIBarcodeDecoder.CoCreateInstance( __uuidof(BarcodeDecoder) );
   _ASSERTE( SUCCEEDED(hr) );

   pIBarcodeDecoder->put_LinearFindBarcodes( 7 );

   hr = pIBarcodeDecoder->DecodeFile( _bstr_t("c:\\barcodes.jpg") ); 
   _ASSERTE( SUCCEEDED(hr) );

   CComPtr<IBarcodeList> pIBarcodeList;
   hr = pIBarcodeDecoder->get_Barcodes( &pIBarcodeList );
   _ASSERTE( pIBarcodeList );

   IBarcodePtr pBarcode;
   while( pBarcode = pIBarcodeList->nextNode() )
   {
      printf( "%s\n", (LPCTSTR)pBarcode->Text );
   }

   return 0;
}



reset Method
Resets the iterator.

Syntax
object.reset()
Return Value
No return value.
Remarks
This method reinitializes the iterator to point before the first node in the IBarcodeList so that the next call to nextNode returns the first item in the list.



 
Barcode Recognition SDK
version 5.60
Latest release: March 6 2017
What's new in SDK

Platforms:

Windows 32-bit & 64-bit
Windows 10 (UWP)
Windows Phone 8/8.1
Windows Mobile
Android
Linux
Raspberry Pi
Mac OS
iPhone
Symbian (S60)

Supports
Linear:

Interleaved 2/5, Industrial 2/5, Code 39, Code 39 Extended, Codabar, Code 11, Code 128, Code 128 Extended, EAN/UCC 128, UPC-E, UPC-A, EAN-8, EAN-13, Code 93, Code 93 Extended, DataBar Omnidirectional (RSS-14), DataBar Truncated (RSS-14 Truncated), DataBar Limited (RSS Limited), DataBar Stacked, DataBar Expanded, DataBar Expanded Stacked.
2D:
PDF417 (Compact, Micro)
QRCode, Micro QRCode
DataMatrix
Aztec Code

Download


Free Barcode Recognition Application
Free Demo Application
Download Now
Windows Barcode Scanner
Windows Barcode Scanner
Download Now

Copyright © 1999-2017, RKD Software & RKD System Inc., All rights reserved.
All trademarks mentioned are the property of their respective owners.