Syntax .net/java/ocx: Object.GetBarString(n) Parameters hBarcode Handle to an instance of the barcode toolkit (dll only). Return Value GetBarString retrieves a barcode string that has been detected by the ScanBarCode method. In .net applications, use System.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String. Remarks · Check digit characters are only output if the ShowCheckDigit property is set to True. · UPC-E barcodes are a zero-suppressed version of EAN-13 and as such are converted to EAN-13 format unless the ConvertUPCEToEAN13 property is set to False. · Code 39 barcodes are not returned with the start/stop * characters. · Codabar barcode value are always returned with the start/stop character pair, which can be either a/t, b/n, c/* or d/n. · The following strings can be returned for patch codes - "Type I", "Type II", "Type III", "Type IV", "Type VI" and "Type T". Win32 dll declarations: VB.Net: Private Declare Function mtGetBarString Lib "SoftekBarcode" (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As System.IntPtr Visual C++: extern "C" {
com: Object.BarString(n)
dll: mtGetBarString (hBarcode, n)
n 1-based index to barcode to be queried.
LPCSTR __stdcall mtGetBarString(HANDLE hBarcode, short index);
}



