Softek Software Barcode Reading Toolkits
HOME PRODUCTS DEVELOPERS STORE ABOUT US
Developer Home
Downloads
Sample Code
Support

Help -> Methods -> GetBarStringType

The Softek Barcode Reader SDK extracts barcode information from images and bitmaps.

GetBarStringType

Overview

GetBarStringType(n)

GetBarStringType returns the type of the nth barcode (indexed from 1) found in the image. Call GetBarStringType after ScanBarCode. Possible values are "CODE39", "CODE128", "CODE25", "CODABAR", "UPCA", "UPCE", "EAN8", "EAN13" and "PATCH".

Visual Basic using the OCX

[form.]SoftekBarcode.GetBarStringType (n) 

Visual Basic using the DLL

Private Declare Function stGetBarStringType Lib "SoftekBarcode" (ByVal nBarCode As Integer) As String

strBarType = stGetBarStringPos(n)

Visual Basic using COM

oBar = CreateObject("SoftekATL.Barcode")
.........
strBarType = oBar.GetBarStringType (n) 

VB.Net using the DLL

Private Declare Function stGetBarStringType Lib "SoftekBarcode" (ByVal nBarCode As Short) As String

strBarType  = stGetBarStringType(n)

VB.Net using the SoftekBarcode Wrapper Class

Dim barcode As SoftekBarcode

..........
strBarType  = barcode.GetBarStringType(n)

VB.Net using the SoftekBarcodeLib Managed Component

Dim barcode As SoftekBarcodeLib.BarcodeReader
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.GetBarStringType(n)

Visual C++ Using the OCX

BSTR GetBarStringType (short n);

Visual C++ Using the DLL

LPCSTR __stdcall stGetBarStringType(short index);