{"id":1885,"date":"2015-05-17T11:15:36","date_gmt":"2015-05-17T02:15:36","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1885"},"modified":"2015-08-26T01:29:01","modified_gmt":"2015-08-25T16:29:01","slug":"typename","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/typename\/","title":{"rendered":"\u30c7\u30fc\u30bf\u578b\u3092\u8abf\u3079\u3066\u305d\u306e\u30c7\u30fc\u30bf\u578b\u3092\u793a\u3059\u6587\u5b57\u5217\u3092\u8fd4\u3059\uff08TypeName \u95a2\u6570\uff09"},"content":{"rendered":"<h2>TypeName \u95a2\u6570 \u306e\u4f7f\u3044\u65b9<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<p><strong>TypeName \u95a2\u6570<\/strong>\u306f\u3001\u5f15\u6570\u306b\u3001\u30c7\u30fc\u30bf\u578b\u3092\u8abf\u3079\u305f\u3044\u5024\u3084\u5909\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u30c7\u30fc\u30bf\u578b\u3092\u793a\u3059\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>result<\/em> = <strong>TypeName<\/strong> ( <em>varname<\/em> )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>varname&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u8abf\u3079\u305f\u3044\u5024\u3084\u5909\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5f15\u6570 <em>varname<\/em> \u306e\u30c7\u30fc\u30bf\u578b\u3092\u8868\u3059\u6587\u5b57\u5217<br \/>\uff08\u623b\u308a\u5024\u306f\u3001\u4ee5\u4e0b\u300cTypeName \u95a2\u6570\u306e\u623b\u308a\u5024\u4e00\u89a7\u300d\u3092\u53c2\u7167\uff09\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>TypeName \u95a2\u6570\u306e\u623b\u308a\u5024\u4e00\u89a7<\/strong><\/p>\n<div class=\"m90-l\">\n<table>\n<tr>\n<td align = \"center\" width=\"100\" bgcolor=\"#ffffcc\"><strong>\u623b\u308a\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Byte<\/td>\n<td width=\"400\">\u30d0\u30a4\u30c8\u578b\uff08Byte\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Integer<\/td>\n<td width=\"400\">\u6574\u6570\u578b\uff08Integer\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Long<\/td>\n<td width=\"400\">\u9577\u6574\u6570\u578b\uff08Long\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Single<\/td>\n<td width=\"400\">\u5358\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u578b\uff08Single\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Double<\/td>\n<td width=\"400\">\u500d\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u578b\uff08Double\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Currency<\/td>\n<td width=\"400\">\u901a\u8ca8\u578b\uff08Currency\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Decimal<\/td>\n<td width=\"400\">10 \u9032\u6570\u578b<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Date<\/td>\n<td width=\"400\">\u65e5\u4ed8\u578b\uff08Date\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">String<\/td>\n<td width=\"400\">\u6587\u5b57\u5217\u578b\uff08String\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Boolean<\/td>\n<td width=\"400\">\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Error<\/td>\n<td width=\"400\">\u30a8\u30e9\u30fc\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Empty<\/td>\n<td width=\"400\">\u672a\u521d\u671f\u5316<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Null<\/td>\n<td width=\"400\">\u7121\u52b9\u306a\u5024<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Object<\/td>\n<td width=\"400\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Unknown<\/td>\n<td width=\"400\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u304c\u4e0d\u660e\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"100\">Nothing<\/td>\n<td width=\"400\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u3044\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<br \/>\n<p class=\"caution4\">\u5f15\u6570 <em>varname<\/em> \u304c\u3001<strong>\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u5909\u6570<\/strong>\u306e\u5834\u5408\u306f\u3001\u5185\u90e8\u51e6\u7406\u5f62\u5f0f\u3092\u8b58\u5225\u3059\u308b\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002\n<\/p>\n<p class=\"caution4\">\u5f15\u6570 <em>varname<\/em> \u304c\u914d\u5217\u306e\u5834\u5408\u306f\u3001\u4e0a\u8a18\u306e\u6587\u5b57\u5217\u306e\u4e2d\u306e\u8a72\u5f53\u3059\u308b\u6587\u5b57\u5217\u307e\u305f\u306f\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff08Variant\uff09\u306e\u5024\u306b\u3001\u7a7a\u306e\u304b\u3063\u3053 &#8220;()&#8221; \u3092\u4ed8\u3051\u3066\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\uff08\u4f8b\uff09\u5f15\u6570 <em>varname<\/em> \u304c\u6574\u6570\u306e\u914d\u5217\u306e\u3068\u304d\u3001<strong>TypeName \u95a2\u6570<\/strong>\u306f &#8220;<span class=\"red\">Integer()<\/span>&#8221; \u3092\u8fd4\u3057\u307e\u3059\u3002\n<\/p>\n<\/div>\n<br \/><br \/>\n<h2>TypeName \u95a2\u6570 \u306e\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=\"TypeName \u95a2\u6570\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_typename()\r\n\r\n    Dim myStr As String, myInt As Integer, myLng As Long\r\n    Dim myDbl As Double, mySgl As Single, myBol As Boolean\r\n    Dim myObj As Object, myDat As Date, myCur As Currency\r\n    Dim myByt As Byte, myWks As Worksheet\r\n    Dim myVal1, myVal2, myEmp, myNull\r\n    \r\n    Set myWks = ActiveSheet\r\n    myVal1 = 123\r\n    myVal2 = CDec(12500)\r\n    myNull = Null\r\n    \r\n    Debug.Print TypeName(myStr)\r\n    Debug.Print TypeName(myInt)\r\n    Debug.Print TypeName(myLng)\r\n    Debug.Print TypeName(myDbl)\r\n    Debug.Print TypeName(mySgl)\r\n    Debug.Print TypeName(myBol)\r\n    Debug.Print TypeName(myObj)\r\n    Debug.Print TypeName(myDat)\r\n    Debug.Print TypeName(myCur)\r\n    Debug.Print TypeName(myByt)\r\n    Debug.Print TypeName(myWks)\r\n    Debug.Print TypeName(myVal1)\r\n    Debug.Print TypeName(myVal2)\r\n    Debug.Print TypeName(myEmp)\r\n    Debug.Print TypeName(myNull)\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\/2015\/05\/typename01.jpg?ssl=1\" rel=\"lightbox[1885]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/typename01.jpg?resize=400%2C241&#038;ssl=1\" alt=\"TypeName \u95a2\u6570 \u4f8b\" width=\"400\" height=\"241\" class=\"alignnone size-medium wp-image-1896\" srcset=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/typename01.jpg?resize=400%2C241&amp;ssl=1 400w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/typename01.jpg?resize=580%2C349&amp;ssl=1 580w, https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/typename01.jpg?w=780&amp;ssl=1 780w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>TypeName \u95a2\u6570 \u306e\u4f7f\u3044\u65b9 TypeName \u95a2\u6570\u306f\u3001\u5f15\u6570\u306b\u3001\u30c7\u30fc\u30bf\u578b\u3092\u8abf &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[247,63,38,248,249],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/05\/typename01-400x2411.jpg?fit=400%2C241&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s4Ye9i-typename","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1885"}],"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=1885"}],"version-history":[{"count":13,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1885\/revisions"}],"predecessor-version":[{"id":3366,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1885\/revisions\/3366"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1913"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}