{"id":518,"date":"2012-11-23T11:05:54","date_gmt":"2012-11-23T11:05:54","guid":{"rendered":"http:\/\/www.bardecode.com\/en1\/?p=518"},"modified":"2013-03-01T14:49:14","modified_gmt":"2013-03-01T14:49:14","slug":"vb6-code-snippets","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/en1\/vb6-code-snippets\/","title":{"rendered":"VB6 Code snippets"},"content":{"rendered":"<p>Use the following links to view code snippets for the\u00a03 different interfaces commonly used from Visual Basic 6&#8230;<\/p>\n<p><strong>ActiveX\/OCX Interface<\/strong><\/p>\n<p>&#8216;Add SoftekBarcode ActiveX Control module by selecting Components from the Projects<br \/>\n&#8216;menu<\/p>\n<p>&#8216;Set properties<br \/>\nSoftekBarcode1.ReadCode128 = True<\/p>\n<p>&#8216;Read barcodes<br \/>\nnBarCodes = SoftekBarcode1.ScanBarCode(Path)<\/p>\n<p>&#8216;Get results<br \/>\nFor i = 1 To nBarCodes<br \/>\nstrBarcode = SoftekBarcode1.GetBarString(i)<\/p>\n<p><strong>COM Object<\/strong><\/p>\n<p>Dim i As Variant<\/p>\n<p>&#8216;Create the Barcode object<br \/>\nSet oBarcode = CreateObject(&#8220;SoftekATL.Barcode&#8221;)<\/p>\n<p>&#8216;Set properties<br \/>\noBarcode.ReadCode128 = True<\/p>\n<p>&#8216;Read barcodes<br \/>\noBarcode.ScanBarCode(Path)<br \/>\nnBarCodes = oBarcode.BarCodeCount<\/p>\n<p>&#8216;Get results<br \/>\nFor i = 1 to nBarCodes<br \/>\nstrBarcode = oBarcode.barstring(i)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the following links to view code snippets for the\u00a03 different interfaces commonly used from Visual Basic 6&#8230; ActiveX\/OCX Interface &#8216;Add SoftekBarcode ActiveX Control module by selecting Components from the Projects &#8216;menu &#8216;Set properties SoftekBarcode1.ReadCode128 = True &#8216;Read barcodes nBarCodes = SoftekBarcode1.ScanBarCode(Path) &#8216;Get results For i = 1 To nBarCodes strBarcode = SoftekBarcode1.GetBarString(i) COM Object<\/p>\n<p><a href=\"https:\/\/www.bardecode.com\/en1\/vb6-code-snippets\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":328,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,31],"tags":[19,123,58,247,65,245,246,57],"class_list":["post-518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge-base","category-software-development-kits","tag-barcode","tag-bardecode","tag-code","tag-code-snippets","tag-sdk-2","tag-vb6","tag-visaul-basic-6","tag-visual-basic"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/518"}],"collection":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/comments?post=518"}],"version-history":[{"count":4,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/518\/revisions"}],"predecessor-version":[{"id":1633,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/518\/revisions\/1633"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media\/328"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media?parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/categories?post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/tags?post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}