{"id":5530,"date":"2016-05-25T10:12:22","date_gmt":"2016-05-25T01:12:22","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5530"},"modified":"2016-05-25T10:12:22","modified_gmt":"2016-05-25T01:12:22","slug":"fsoskip","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/fsoskip\/","title":{"rendered":"TextStream \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6307\u5b9a\u3055\u308c\u305f\u8aad\u307f\u8fbc\u307f\u4f4d\u7f6e\u306b\u79fb\u52d5\uff08Skip,SkipLine\uff09"},"content":{"rendered":"<h2>Skip \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u958b\u3044\u305f <strong>TextStream \u30d5\u30a1\u30a4\u30eb<\/strong>\u3067\u3001\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u6570\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u5834\u6240\u3078\u8aad\u307f\u8fbc\u307f\u4f4d\u7f6e\u3092\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Skip<\/strong> ( <em>characters<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<span class=\"red\"><strong>TextStream \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>characters&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u6587\u5b57\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<p class=\"caution4\">\u8aad\u307f\u53d6\u308a\u5c02\u7528\u30e2\u30fc\u30c9\u4ee5\u5916\u3067\u958b\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>SkipLine \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u958b\u3044\u305f <strong>TextStream \u30d5\u30a1\u30a4\u30eb<\/strong>\u3067\u3001\uff11\u884c\u4e0b\u306e\u884c\u982d\u306b\u8aad\u307f\u8fbc\u307f\u4f4d\u7f6e\u3092\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>SkipLine<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<span class=\"red\"><strong>TextStream \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<p class=\"caution4\">\u8aad\u307f\u53d6\u308a\u5c02\u7528\u30e2\u30fc\u30c9\u4ee5\u5916\u3067\u958b\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/><br \/>\n<h2>Skip \u30e1\u30bd\u30c3\u30c9\u30fbSkipLine \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Skip \/ SkipLine \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Skip()\r\n\r\n    Dim fso As New FileSystemObject\r\n    Dim f1 As TextStream, f2 As TextStream, f3 As TextStream\r\n    Dim str1 As String, str2 As String, str3 As String\r\n    Dim fname As String\r\n    fname = \"C:\\Documents\\mydata5\\test01.txt\"\r\n    \r\n    Set f1 = fso.OpenTextFile(fname)\r\n    str1 = \"\u3010test01.txt \u306e\u5185\u5bb9\u3059\u3079\u3066\u3011\" & vbCrLf & f1.ReadAll\r\n    f1.Close\r\n    \r\n    'Skip \u30e1\u30bd\u30c3\u30c9\r\n    Set f2 = fso.OpenTextFile(fname)\r\n    f2.Skip 5\r\n    str2 = \"\u3010test01.txt 6\u6587\u5b57\u76ee\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3011\" & vbCrLf & f2.ReadAll\r\n    f2.Close\r\n    \r\n    'SkipLine \u30e1\u30bd\u30c3\u30c9\r\n    Set f3 = fso.OpenTextFile(fname)\r\n    f3.SkipLine\r\n    str3 = \"\u3010test01.txt 2\u884c\u76ee\u304b\u3089\u8aad\u307f\u8fbc\u307f\u3011\" & vbCrLf & f3.ReadAll\r\n    f3.Close\r\n    \r\n    MsgBox str1 & vbCrLf & str2 & vbCrLf & str3\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_skip01.jpg?ssl=1\" rel=\"lightbox[5530]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_skip01.jpg?resize=247%2C380&#038;ssl=1\" alt=\"FSO Skip \u30e1\u30bd\u30c3\u30c9\u30fbSkipLine \u30e1\u30bd\u30c3\u30c9\" width=\"247\" height=\"380\" class=\"alignnone size-full wp-image-5531\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Skip \u30e1\u30bd\u30c3\u30c9 \u958b\u3044\u305f TextStream \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u6570\u3092 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5531,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[836],"tags":[721,693,722,834,893,894,900,63,38],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_skip01.jpg?fit=247%2C380&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4Ye9i-fsoskip","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5530"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=5530"}],"version-history":[{"count":2,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5530\/revisions"}],"predecessor-version":[{"id":5575,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5530\/revisions\/5575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5531"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}