{"id":6333,"date":"2013-12-27T09:54:35","date_gmt":"2013-12-27T00:54:35","guid":{"rendered":"http:\/\/www.gesource.jp\/weblog\/?p=6333"},"modified":"2017-07-16T09:06:05","modified_gmt":"2017-07-16T00:06:05","slug":"jvinterpreter%e3%81%a7delphicbuilder%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ab%e7%b0%a1%e6%98%93pascal%e8%a8%80%e8%aa%9e%e3%82%92%e7%b5%84%e3%81%bf%e8%be%bc-3","status":"publish","type":"post","link":"https:\/\/www.gesource.jp\/weblog\/?p=6333","title":{"rendered":"JvInterpreter\u3067Delphi\/C++Builder\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7c21\u6613Pascal\u8a00\u8a9e\u3092\u7d44\u307f\u8fbc\u3080(3)"},"content":{"rendered":"<h3>\u30b3\u30fc\u30c9\u3092\u691c\u8a3c\u3059\u308b<\/h3>\n<p>JvInterpreterProgram\u306eCompile\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306b\u554f\u984c\u304c\u3042\u308b\u3068\u304d\u306bEJvInterpreterError\u4f8b\u5916\u304c\u6295\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>EJvInterpreterError\u306eErrCode\u30d7\u30ed\u30d1\u30c6\u30a3\u3068Message\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3001\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>JvInterpreterProgram\u306eLastError.ErrCode\u30d7\u30ed\u30d1\u30c6\u30a3\u3084LastError.Message\u3067\u3082\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3067\u304d.LastError.ErrPos\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30a8\u30e9\u30fc\u306e\u5834\u6240\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre><code>begin\n  try\n    JvInterpreterProgram1.Compile;\n  except\n    on E : EJvInterpreterError do\n    begin\n      ShowMessage(Format('%d:%s', [E.ErrCode, E.Message]));\n      if E.ErrPos &gt; -1 then\n      begin\n        Memo1.Text := JvInterpreterProgram1.Pas.Text;\n        Memo1.SelStart := E.ErrPos;\n        Memo1.SelLength := 0;\n      end;\n    end;\n    on E: Exception do\n    begin\n      ShowMessage(Format('%d:%s', [\n        JvInterpreterProgram1.LastError.ErrCode,\n        JvInterpreterProgram1.LastError.Message]));\n      if JvInterpreterProgram1.LastError.ErrPos &gt; -1 then\n      begin\n        Memo1.Text := JvInterpreterProgram1.Pas.Text;\n        Memo1.SelStart := JvInterpreterProgram1.LastError.ErrPos;\n        Memo1.SelLength := 0;\n      end;\n    end;\n  end;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30fc\u30c9\u3092\u691c\u8a3c\u3059\u308b JvInterpreterProgram\u306eCompile\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306b\u554f\u984c\u304c\u3042\u308b\u3068\u304d\u306bEJvInterpreterError\u4f8b\u5916\u304c\u6295\u3052\u3089\u308c\u307e\u3059\u3002 EJvInterpreterError\u306e &#8230;<\/p>\n<p><a href=\"https:\/\/www.gesource.jp\/weblog\/?p=6333\" class=\"more-link\">Continue reading &lsquo;JvInterpreter\u3067Delphi\/C++Builder\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7c21\u6613Pascal\u8a00\u8a9e\u3092\u7d44\u307f\u8fbc\u3080(3)&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[48],"tags":[156,112,128],"class_list":["post-6333","post","type-post","status-publish","format-standard","hentry","category-delphi","tag-delphi","tag-jvcl","tag-jvinterpreter"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/6333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6333"}],"version-history":[{"count":0,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/6333\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}