<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ktrito33</author_name>
  <author_url>https://blog.hatena.ne.jp/ktrito33/</author_url>
  <blog_title>怠日記</blog_title>
  <blog_url>https://nmk365.hatenablog.jp/</blog_url>
  <categories>
    <anon>VBScript</anon>
  </categories>
  <description>スクリプトの実行中にエラーが起きると、通常、その時点でスクリプトは強制終了されてしまう。 しかし、On Error Resume Next ステートメントと On Error GoTo 0 ステートメントで囲まれたコードでは、エラーが発生してもプログラムがそのまま動き続けるようになる。 この仕組みを使って、エラー発生時に独自の処理を行うようにできる。 サンプルコード 次のスクリプトは100を0で割った結果を表示する。しかし、0で割ることはできないため、実行時エラーになる。 Dim result result = 100 / 0 MsgBox &quot;100÷0＝&quot; &amp; CStr(result) 先ほ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmk365.hatenablog.jp%2Fentry%2Fvbscript-error-handling-1&quot; title=&quot;VBScript - エラー処理（その１） - 怠日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-01 08:00:00</published>
  <title>VBScript - エラー処理（その１）</title>
  <type>rich</type>
  <url>https://nmk365.hatenablog.jp/entry/vbscript-error-handling-1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
