{"id":6359,"date":"2014-01-03T09:04:30","date_gmt":"2014-01-03T00:04:30","guid":{"rendered":"http:\/\/www.gesource.jp\/weblog\/?p=6359"},"modified":"2017-07-16T09:06:02","modified_gmt":"2017-07-16T00:06:02","slug":"fastscript%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-tfsscript%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%82%84%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.gesource.jp\/weblog\/?p=6359","title":{"rendered":"FastScript\u3092\u4f7f\u3063\u3066\u307f\u308b TfsScript\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>TfsScript\u30af\u30e9\u30b9\u306e\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u8abf\u3079\u3066\u307f\u305f\u3002<\/p>\n<h2>TfsScript\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h2>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002<\/p>\n<h3>SyntaxType\u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u4f7f\u7528\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3002<\/p>\n<p>\u300cPascalScript\u300d\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001TfsPascal\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u3066\u3001SyntaxType\u3092&#8217;PascalScript&#8217;\u306b\u3059\u308b\u3002<\/p>\n<p>\u300cC++Script\u300d\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001TfsCPP\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u3066\u3001SyntaxType\u3092&#8217;C++Script&#8217;\u306b\u3059\u308b\u3002<\/p>\n<p>\u300cBasicScript\u300d\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001TfsBasic\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u3066\u3001SyntaxType\u3092&#8217;BasicScript&#8217;\u306b\u3059\u308b\u3002<\/p>\n<p>\u300cJScript\u300d\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001TfsJScript\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u3066\u3001SyntaxType\u3092&#8217;JScript&#8217;\u306b\u3059\u308b\u3002<\/p>\n<pre><code>fsScript1.SyntaxType := 'PascalScript';\n<\/code><\/pre>\n<h3>Lines\u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u5b9f\u884c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b3\u30fc\u30c9\u3002<\/p>\n<pre><code>fsScript1.Lines.Text := 'begin ShowMessage(''Hello!'') end.';\n<\/code><\/pre>\n<h3>Parent\u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6a19\u6e96\u306e\u578b\u3068\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306ffsGlobalUnit\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre><code>fsScript1.Parent := fsGlobalUnit;\n<\/code><\/pre>\n<h3>ErrorMsg\u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>Compile\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3068\u304d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3002<\/p>\n<h3>ErrorPos\u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>Compile\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3068\u304d\u306e\u30a8\u30e9\u30fc\u306e\u5834\u6240\u3002<\/p>\n<p>fsPosToPoint\u95a2\u6570\u3067TPoint\u306b\u5909\u63db\u3067\u304d\u308b\u3002<\/p>\n<pre><code>var\n  P: TPoint;\nbegin\n  P := fsPosToPoint(fsScript1.ErrorPos);\n<\/code><\/pre>\n<h3>Compile\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u6210\u529f\u3057\u305f\u3068\u304d\u306fTrue\u3001\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3068\u304d\u306fFalse\u3092\u8fd4\u3059\u3002<\/p>\n<pre><code>if fsScript1.Compile then\n  fsScript1.Execute\nelse\n  ShowMessage(fsScript1.ErrorMsg);\n<\/code><\/pre>\n<h3>Execute\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre><code>fsScript1.Execute;\n<\/code><\/pre>\n<h3>Run\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3001\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u6210\u529f\u3057\u305f\u3068\u304d\u306fTrue\u3001\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3068\u304d\u306fFalse\u3092\u8fd4\u3059\u3002<\/p>\n<pre><code>if not fsScript1.Run then\n  ShowMessage(fsScript1.ErrorMsg);\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TfsScript\u30af\u30e9\u30b9\u306e\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u8abf\u3079\u3066\u307f\u305f\u3002 TfsScript\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002 SyntaxType\u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3002 \u300cPascalScri &#8230;<\/p>\n<p><a href=\"https:\/\/www.gesource.jp\/weblog\/?p=6359\" class=\"more-link\">Continue reading &lsquo;FastScript\u3092\u4f7f\u3063\u3066\u307f\u308b TfsScript\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066&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,129],"class_list":["post-6359","post","type-post","status-publish","format-standard","hentry","category-delphi","tag-delphi","tag-fastscript"],"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\/6359","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=6359"}],"version-history":[{"count":0,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/6359\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}