{"id":385,"date":"2008-12-17T19:45:01","date_gmt":"2008-12-17T18:45:01","guid":{"rendered":"http:\/\/blog.m-ri.de\/?p=385"},"modified":"2008-12-17T19:24:50","modified_gmt":"2008-12-17T18:24:50","slug":"was-ist-falsch-mit-diesem-code-1","status":"publish","type":"post","link":"http:\/\/blog.m-ri.de\/index.php\/2008\/12\/17\/was-ist-falsch-mit-diesem-code-1\/","title":{"rendered":"Was ist falsch mit diesem Code? (1)"},"content":{"rendered":"<p>Ein Kollege hatte ein gr\u00f6\u00dferes Makro in VBScript geschrieben und ein interessantes Problem dabei entdeckt. Ich mache mal ein Ratespiel daraus \ud83d\ude09<\/p>\n<p><strong>Was ist faul mit diesem VBScript-Code?<\/strong><\/p>\n<pre lang=\"vb\" line=\"1\">On Error Resume Next\r\nIf MyFunction() Then\r\n    MsgBox \"MyFunction succedded\"\r\nElse\r\n    MsgBox \"MyFunction failed\"\r\nEnd If\r\n\r\nMsgBox \"... continue execution ...\"\r\n\r\nFunction MyFunction\r\n    MsgBox \"Start MyFunction\"\r\n    On Error Goto 0\r\n...\r\n    MsgBox \"End MyFunction\"\r\n    Test = true\r\nEnd Function<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ein Kollege hatte ein gr\u00f6\u00dferes Makro in VBScript geschrieben und ein interessantes Problem dabei entdeckt. Ich mache mal ein Ratespiel daraus \ud83d\ude09 Was ist faul mit diesem VBScript-Code? On Error Resume Next If MyFunction() Then MsgBox &#8222;MyFunction succedded&#8220; Else MsgBox &#8222;MyFunction failed&#8220; End If MsgBox &#8222;&#8230; continue execution &#8230;&#8220; Function MyFunction MsgBox &#8222;Start MyFunction&#8220; On &hellip; <a href=\"http:\/\/blog.m-ri.de\/index.php\/2008\/12\/17\/was-ist-falsch-mit-diesem-code-1\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWas ist falsch mit diesem Code? (1)\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,9],"tags":[38,157,156],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-programmieren","category-sonstiges","tag-debuggen","tag-html","tag-vbscript"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":1,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":388,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/posts\/385\/revisions\/388"}],"wp:attachment":[{"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/media?parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/categories?post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.m-ri.de\/index.php\/wp-json\/wp\/v2\/tags?post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}