Scanner ActiveX Control

BarCodeGetType

 

Return the 1D and 2D barcode type for specific index. Support UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF, Codabar, MSI, RSS-14 (all variants), QR Code, Data Matrix, Aztec and PDF-417.

Public Function BarCodeGetType( _
   ByVal iIndex  As Integer
) As Integer

 

Parameter

iIndex
the index of barcode.


Return Value

Return the barcode type for specific index

Example

   

Visual Basic Syntax
ibarcodeCount = Me.Scanner1.BarCodeReadFullPage
str1 = "Total " + Str(ibarcodeCount) + " BarCode detected" + Chr(13) + Chr(10)

For i = 0 To ibarcodeCount - 1
strTmp = Me.Scanner1.BarCodeGetType(i) + " score:" + Str(Me.Scanner1.BarCodeGetScore(i)) + " value:" + Me.Scanner1.BarCodeGetValue(i)
str1 = str1 + Chr(13) + Chr(10) + strTmp
Next

MsgBox str1