{"id":1918,"date":"2020-09-15T11:28:10","date_gmt":"2020-09-15T02:28:10","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1918"},"modified":"2020-09-15T11:28:10","modified_gmt":"2020-09-15T02:28:10","slug":"post-1918","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/09\/15\/post-1918\/","title":{"rendered":"VBScript\u306esub\u3068Function\u306e\u52d5\u4f5c\u306e\u9055\u3044"},"content":{"rendered":"<h2>VBScript\u306e sub \u3068 Function \u306e\u52d5\u4f5c\u306e\u9055\u3044<\/h2>\n<p>\u3076\u3063\u3061\u3083\u3051\u5168\u3066\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092Function\u3067\u66f8\u3044\u3066\u3082\u554f\u984c\u306a\u3044\u306e\u3067\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u306a\u304b\u3063\u305f\u3051\u3069...\u3002<\/p>\n<h3>\u6700\u5927\u306e\u9055\u3044\u306f\u3010\u623b\u308a\u5024\u3011\u304c\u6271\u3048\u308b\u304b<\/h3>\n<div class=\"borderBox\">\n<p>sub\uff1a\u623b\u308a\u5024\u3092\u6271\u3048\u306a\u3044<br \/>\nFunction\uff1a\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u540d \uff1d \u623b\u308a\u5024 \u3067\u5024\u3092\u6e21\u305b\u308b<\/p>\n<\/div>\n<p>\u30c7\u30ab\u3044\u306d\u3001\u3053\u306e\u9055\u3044\u3002<br \/>\n\u3060\u304b\u3089Function\u3067\u3070\u304b\u308a\u66f8\u3044\u3066\u3057\u307e\u3046\u308f\u3051\u3060\u3051\u3069\u3002<\/p>\n<h3>sub\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4f7f\u3044\u3069\u3053\u308d<\/h3>\n<p>IE\u30d6\u30e9\u30a6\u30b8\u30f3\u30b0\u3060\u3063\u305f\u3089\u51e6\u7406\u5b8c\u4e86\u307e\u3067\u4e00\u8cab\u3057\u3066\u884c\u3046\u30d1\u30fc\u30c4\u3068\u304b\u3001\u89aa\u5143\u306b\u7b54\u3048\u3092\u8fd4\u3055\u306a\u304f\u3066\u3044\u3044\u6642\u304c\u4f7f\u3044\u3069\u3053\u308d\u3002<br \/>\n\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3060\u3063\u305f\u3089\u3001\u51e6\u7406\u5168\u4f53\u306e\u7e8f\u308a\u3092Sub\u3067\u66f8\u3044\u3066\u305d\u306e\u4e2d\u306e\u7d30\u304b\u3044\u51e6\u7406\u3092Function\u3067\u5024\u53d7\u3051\u6e21\u3059\u3068\u304b\u3002<\/p>\n<pre class=\"lang:default decode:true\">'\u547c\u51fa\u3057\r\nhoge \u5f15\u65701,\u5f15\u65702,\u5f15\u65703\r\n'\u3053\u308c\u3067\u3082OK\r\nCall hoge \u5f15\u65701,\u5f15\u65702,\u5f15\u65703\r\n\r\nSub hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\n  '\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u52d5\u4f5c\r\nEnd Sub<\/pre>\n<p>Call\u3092\u4f7f\u3063\u305f\u65b9\u304c\u5224\u308a\u6613\u3055\u306f\u3042\u308b\u3051\u3069\u3001\u7701\u7565\u3057\u3066\u66f8\u304d\u305f\u3044\u3082\u306e\u3060\u304b\u3089\u66f8\u304b\u306a\u3044\u4e8b\u304c\u591a\u3044\u3067\u3059\u306d\u3002<\/p>\n<h3>Function\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4f7f\u3044\u3069\u3053\u308d<\/h3>\n<p>\u79c1\u306e\u5834\u5408\u306fsub\u306f\u307b\u307c\u4f7f\u308f\u305a\u5168\u9762Function\u3067\u66f8\u3044\u3066\u307e\u3059\u3002<\/p>\n<p>\u623b\u308a\u5024\u304c\u3042\u308b\u3082\u306e\u306fFunction\u3067\u66f8\u304f\u4e8b\u5fc5\u9808\u3067\u3059\u304c\u3001\u305d\u308c\u4ee5\u5916\u306f\u6574\u7406\u6574\u9813\u3057\u3084\u3059\u3044\u81ea\u5206\u6d41\u30eb\u30fc\u30eb\u3067\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u300c\u898b\u8fd4\u3057\u3066\u308f\u304b\u308a\u3084\u3059\u3044\u300d\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u5fc5\u8981\u306a\u6761\u4ef6\u3067\u3059\u304b\u3089\u3002<\/p>\n<p>\u25bcSub\u3068\u540c\u3058(\u623b\u308a\u5024\u306e\u7121\u3044)\u4f7f\u3044\u65b9<\/p>\n<pre class=\"lang:default decode:true\">'\u547c\u51fa\u3057\r\nhoge \u5f15\u65701,\u5f15\u65702,\u5f15\u65703 \r\n'\u3053\u308c\u3067\u3082OK \r\nCall hoge \u5f15\u65701,\u5f15\u65702,\u5f15\u65703 \r\n\r\nFunction hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\n '\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u52d5\u4f5c \r\nEnd Function<\/pre>\n<p>\u25bc\u623b\u308a\u5024\u306e\u3042\u308bFunction\u3060\u3051\u306e\u4f7f\u3044\u65b9<\/p>\n<pre class=\"lang:default decode:true\">'\u547c\u51fa\u3057\r\nDim backData\r\n\r\nbackData = hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\nMsgBox(backData)\r\n\r\nFunction hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\n  '\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u52d5\u4f5c\r\n  hoge = \"fugafuga\"\r\nEnd Function<\/pre>\n<p>\u203b\u3053\u3046\u66f8\u304f\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u306b fugafuga \u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<h3>Function\u3067\u8907\u6570\u306e\u623b\u308a\u5024\u3092\u6e21\u3059<\/h3>\n<p>\u3053\u3053\u3089\u8fba\u306fPHP\u3068\u304b\u3068\u540c\u3058\u3067\u3001\u57fa\u672c\u7684\u306b\u914d\u5217\u306b\u5165\u308c\u3066\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">'\u547c\u51fa\u3057\r\nDim backData\r\n\r\nbackData = hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\nMsgBox(backData(0))\r\nMsgBox(backData(1))\r\n\r\nFunction hoge(\u5f15\u65701,\u5f15\u65702,\u5f15\u65703)\r\n  '\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u52d5\u4f5c\r\n  hoge = array(\"fuga\",\"hega\")\r\nEnd Function<\/pre>\n<p>\u203b\u3053\u3046\u66f8\u304f\u3068\u6700\u521d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u306b fuga\u30012\u3064\u76ee\u306b hega \u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3082\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u6587\u5b57\u5217\u306b\u3057\u3066\u53d7\u3051\u53d6\u308a\u5074\u3067 split(backData,\",\") \u3068\u3044\u3046\u65b9\u6cd5\u3082\u3042\u308b\u3051\u3069...CSV\u306b\u66f8\u304d\u51fa\u3055\u306a\u3044\u9650\u308a\u6709\u7528\u306a\u65b9\u6cd5\u3067\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div class=\"pointBox\">\n<p>\u623b\u308a\u5024\u306f1\u3064\u306e\u5024\u3068\u3057\u3066\u8fd4\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044<\/p>\n<\/div>\n<p>\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3068\u540c\u3058\u3067\u7406\u89e3\u3057\u3084\u3059\u304f\u52a9\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u66f8\u304d\u306a\u304c\u3089\u5f37\u304f\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u3084\u3063\u3071\u308a<span style=\"font-family: Lato, \u6e38\u30b4\u30b7\u30c3\u30af\u4f53, 'Yu Gothic', YuGothic, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4\u30b7\u30c3\u30af Pro', 'Hiragino Kaku Gothic Pro', \u30e1\u30a4\u30ea\u30aa, 'Meiryo, Osaka', '\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af', 'MS PGothic', sans-serif; font-size: 1.4rem;\">\u53d6\u308a\u5408\u3048\u305a<\/span><span style=\"font-family: Lato, \u6e38\u30b4\u30b7\u30c3\u30af\u4f53, 'Yu Gothic', YuGothic, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4\u30b7\u30c3\u30af Pro', 'Hiragino Kaku Gothic Pro', \u30e1\u30a4\u30ea\u30aa, 'Meiryo, Osaka', '\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af', 'MS PGothic', sans-serif; font-size: 1.4rem;\">Function\u3067\u66f8\u3044\u3068\u3051\u3070OK\u3058\u3083\u306d\uff1f<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VBScript\u306e sub \u3068 Function \u306e\u52d5\u4f5c\u306e\u9055\u3044 \u3076\u3063\u3061\u3083\u3051\u5168\u3066\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092Function\u3067\u66f8\u3044\u3066\u3082\u554f\u984c\u306a\u3044\u306e\u3067\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u306a\u304b\u3063\u305f\u3051\u3069...\u3002 \u6700\u5927\u306e\u9055\u3044\u306f\u3010\u623b\u308a\u5024\u3011\u304c\u6271\u3048\u308b\u304b sub\uff1a\u623b\u308a\u5024\u3092\u6271 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1923,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[689],"tags":[742,741,685,145,684,743,379,740,58,693,68],"class_list":["post-1918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wsh-vbs","tag-function","tag-sub","tag-vbs","tag-windows10","tag-wsh","tag-743","tag-379","tag-740","tag-58","tag-693","tag-68"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/09\/image.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1918"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/1923"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}