{"id":1357,"date":"2009-10-26T11:14:34","date_gmt":"2009-10-26T11:14:34","guid":{"rendered":"http:\/\/www.bardecode.com\/newsite\/?p=1357"},"modified":"2013-02-12T11:14:58","modified_gmt":"2013-02-12T11:14:58","slug":"getbarstringtype-get-the-type-of-barcode","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/newsite\/getbarstringtype-get-the-type-of-barcode\/","title":{"rendered":"GetBarStringType &#8211; get the type of barcode"},"content":{"rendered":"<p><strong><strong>Syntax<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>.net\/java\/ocx:\u00a0Object.<strong>GetBarStringType<\/strong>(n)<br \/>\ncom:\u00a0Object.<strong>BarStringType<\/strong>(n)<br \/>\ndll:\u00a0<strong>mtGetBarStringType<\/strong>(hBarcode, n)<\/strong><\/p>\n<p><strong><strong>Parameters<\/strong><\/strong><\/p>\n<p><strong>hBarcode\u00a0Handle to an instance of the barcode toolkit (dll only).<br \/>\nn\u00a01-based index to barcode to be queried.<\/strong><\/p>\n<p><strong><strong>Return Value<\/strong><\/strong><\/p>\n<p><strong>GetBarStringType returns a string representing the type of barcode.<\/strong><\/p>\n<p><strong>In .net applications, use\u00a0System.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String.<\/strong><\/p>\n<p><strong><strong>Remarks<\/strong><\/strong><\/p>\n<p><strong>Call GetBarStringType after calling ScanBarCode to determine the types of barcode found in a document. Examples of values returned by the function are \u201cCODE39\u201d and \u201cCODE128\u201d.<\/strong><\/p>\n<p><strong><strong>Win32 dll declarations:<\/strong><\/strong><\/p>\n<p><strong><strong>VB.Net:<\/strong><\/strong><\/p>\n<p><strong>Private Declare Function mtGetBarString Lib &#8220;SoftekBarcode&#8221; (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As System.IntPtr<\/p>\n<p><\/strong><\/p>\n<p><strong><strong>Visual C++:<\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>extern &#8220;C&#8221; {<br \/>\nLPCSTR __stdcall mtGetBarString(HANDLE hBarcode, short index);<br \/>\n}<\/strong><\/p>\n<div><strong><br \/>\n<\/strong><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syntax &nbsp; &nbsp; .net\/java\/ocx:\u00a0Object.GetBarStringType(n) com:\u00a0Object.BarStringType(n) dll:\u00a0mtGetBarStringType(hBarcode, n) Parameters hBarcode\u00a0Handle to an instance of the barcode toolkit (dll only). n\u00a01-based index to barcode to be queried. Return Value GetBarStringType returns a string representing the type of barcode. In .net applications, use\u00a0System.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String. Remarks Call GetBarStringType after calling &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[236,18],"tags":[],"class_list":["post-1357","post","type-post","status-publish","format-standard","hentry","category-documentation-for-our-toolkits-and-applications","category-knowledge-base"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1357"}],"collection":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/comments?post=1357"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1357\/revisions"}],"predecessor-version":[{"id":1358,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/1357\/revisions\/1358"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media?parent=1357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/categories?post=1357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/tags?post=1357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}