ã³ã³ããã¹ãã¡ãã¥ã¼ã¾ãã¯ãã¡ãã¥ã¼ãã¼ã®Rubberduckã¡ãã¥ã¼ããRefactorãå®è¡ãããã¨ã§ãªãã¡ã¯ã¿ãªã³ã°ãè¡ãã¾ãã ä¸è¨ã®ä¾ã§ã¯é¢æ°åãå¤æ´ãã¦ãã¾ãã ä»ã«ãå¼æ°ã®åé¤ãé çªãè¡ãã¾ãã ãã¹ãç¨ã®ã¢ã¸ã¥ã¼ã«ã¨ã¡ã½ããã®è¿½å æ¹æ³ RubberduckâUnit TestsâTest Moduleã§ãã¹ãã¢ã¸ã¥ã¼ã«ã追å ãRubberduckâUnit TestsâTest Methodã§ãã¹ãã¡ã½ããã追å ãã¾ãã ãã¹ãã¢ã¸ã¥ã¼ã«ä¸ã®ã'@TestMethodãã¨ããã³ã¡ã³ããè¨è¼ãããé¢æ°ããã¹ãã¡ã½ããã¨ãªãã¾ãã ãã¹ãå®è¡ä¾ ã¾ã以ä¸ã®ãããªãã¹ãã¢ã¸ã¥ã¼ã«ãç¨æãã¾ãã Option Explicit Option Private Module '@TestModule '@Folder("Tests") Private Assert As Object
ããã°ã©ãã³ã°è¨èªã©ã³ãã³ã°ä¸çï¼ä½â»ã®VBAãä»ã®è¨èªã¨æ¯ã¹ã¦ããã«åªãã¦ããã®ãåãããã¦ããããã¨æãã¾ããããï¼Excelã¨ãæ±ããããã¨ãã§ããï¼ã¯ããè«ç ´ãã¨ãè¨ããªãã â»TIOBEã§æ¯å¹´å ¬éããã¦ããã©ã³ãã³ã°ï¼2012å¹´ç¾å¨ï¼ http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html ã¾ãã¯è³å è¨å®ã§VBAã®å¾å§å¦¹ã§ããVBScriptï¼JSã¨ã¯å¹¼é¦´æï¼ VBSã£ã¦ããã¨ã¯ã³ã¯ãªãã¯ã®ãããã¨ãHTMLã§<script>ãããã¨ãè²ã ã¨æããã£ã¦ã¤ã¡ã¼ã¸ããã¨WScriptå 輩ãªãã¹ãªãã¹ã£ã¦æãã VBAãVBSãVBæ´¾çãªãã§ææ³ã¯ã»ã¼ä¸ç·ãã£ã¦ãã¨ã¯VBAã³ããããã°VBSããããããï¼ãã¯ï½ï½ï½ä¿ºå¤©æï½ï½ï½ââ¦ç§ã£ã¦ã»ãã¨ãã«ãªäººã¯ä¿ºã ããããªãã¯ãï¼ ãããªããã§ãã£ã¦ã¿ã¾ããã 第ï¼ä½ãå¤
2019å¹´8æ14æ¥ã«é ä¿¡ãããWindowsUpdateãé©ç¨ããã¨ãWindows10å ¨ãã¼ã¸ã§ã³ã«ã¦ãVBVisual Basic 6 (VB6)ã§ä½æããã¢ããªã±ã¼ã·ã§ã³ãVisual Basic for Applications (VBA)ã§ä½æãããã¯ããVisual Basic Scripting Edition (VBScript)ã§ä½æãããã¯ããã¢ããªã±ã¼ã·ã§ã³ãå¿çããªããªãããinvalid procedure call error.ãã¨è¡¨ç¤ºãããå ´åãããã¨ããä¸å ·åãçºçãã¦ãã¾ããã 2019å¹´8æ17æ¥ä»¥éã«é ä¿¡ãããä¸è¨ã®ãä¿®æ£KBã(ã¾ãã¯ãã以éã®KB)ãé©ç¨ãããã¨ã§ãã®ä¸å ·åã¯çºçããªããªãã¾ãã
ã¯ãã¹ãã©ãããã©ã¼ã ã§éçºã§ãã.NET Coreã®åºç¤ããéçºå®è·µã¾ã§ãå¦ã¹ãå ¥éé£è¼ã6åç®ã¯ã¯ã©ã¹ã©ã¤ãã©ãªããã¸ã§ã¯ããNuGetããã±ã¼ã¸ã¨ãã¦åç §ã§ããããã«ãä½æã¨çºè¡ãè¡ãã â åå é£è¼ INDEX 次å â NuGetããã±ã¼ã¸ã¨nuget.org NuGetããã±ã¼ã¸ ååã¯ã¯ã©ã¹ã©ã¤ãã©ãªããã¸ã§ã¯ããããã¸ã§ã¯ãåç §ã¨ãã¦å¥ã®ããã¸ã§ã¯ãããåç §ãããããã¸ã§ã¯ãåç §ã®å ´åãã½ã¼ã¹ã³ã¼ããç´æ¥åç §ãããããã½ã¼ã¹ã³ã¼ããå¿ è¦ã§ããããã«ãã®ãã³ã«ã©ã¤ãã©ãªå´ã®ãã«ããè¡ãããããã«ãå¾ã®ãã¤ããªã®ã¿ãåç §ãããå ´åããã«ãææç©ã§ãã.dllãã¡ã¤ã«ã®ã¿ãåç §ããã¨ããæ¹æ³ããããã.dllãã¡ã¤ã«ã®ã¿ãåç §ããã¨ãã¯ã©ã¹ã©ã¤ãã©ãªèªèº«ã®ãã¼ã¸ã§ã³ããã¯ã©ã¹ã©ã¤ãã©ãªãå¿ è¦ã¨ããå¥ã®ã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ã®ç®¡çãæåã§è¡ãå¿ è¦ãã§ã¦ããã ããã§NuGetãã
ä»åã¯VBAã¦ã¼ã¶ã¼å¿ è¦ãå¿çãªãã«ãªã£ãExcelã§VBAã確å®ã«ä¸æãããæ¹æ³ï¼ä»®ç§°ï¼ã¡ã ãã¡ã ã奥義ï¼ãç´¹ä»ãã¾ãã çããã¯VBAæãã¯ãã¯ãã®å®è¡ä¸ã«ãç¡éã«ã¼ããèµ·ããã¦ãã¾ãä¸æã§ããªãã®ã§ãæ³£ãæ³£ãExcelãå¼·å¶çµäºãããããªãã¦çµé¨ã¯ããã¾ãããï¼ å®ã¯Windowsã®è£æçãªæ¹æ³ã§ãVBAãæ¢ãããã¨ãå¯è½ã§ãï¼ ä¸è¬çã«ç¥ããã¦ããVBAã®ä¸ææ¹æ³ Excelãå¿çãªãã«ãªãåå ã¨é²ãæ¹æ³ å¿çãªãã®åç¾ããã°ã©ã DoEventsã§å¿çãªããé²ã DoEventsã®çºçé »åº¦ã調æ´ãã å¹ççãªã³ã¼ãã£ã³ã°æ¹æ³ãç¥ã å¿çãåæ¢ãã¦ãã¾ã£ãVBAã確å®ã«ä¸æãããæ¹æ³ VBAã確å®ã«ä¸æããã ä¸æã§ããããã«ããæ¡ä»¶ ã¿ã¹ã¯ãã¼ã®è¨å®ãå¤ãã 1ã¹ãããã«è² è·ããããããªã èªåçãªãã¯ãã®æå¹åãæ¢ãã ã¯ã¦ãã³ã¡ã³ãè¿ã ã¾ã¨ã ä¸è¬çã«ç¥ããã¦ããVBAã®ä¸
VBA ã¸ã®éå£Â¶ 2012å¹´åã¾ã§ãã¼ã£ã¨VBA ãé¿ãã¦ãã大ããª3ã¤ã®çç±ãèªåã«ã¯ããã¾ããã ãã¼ã¸ã§ã³ç®¡çãé£ãã ã½ã¼ã¹ã³ã¼ãããã¤ããªå é¨ã«åå¨ããç°ãªãçã®éã§ã®å·®å管çã¯ã»ã¼ä¸å¯è½ å¤é¨ããã®åç §å¼ç¨ãé常ã«é£ããã å ±æã©ã¤ãã©ãªåãé£ãã è¤æ°ãã¡ã¤ã«ã§å©ç¨ãã¦ããåãå 容ã®ã¢ã¸ã¥ã¼ã«ã®ä¿å®ãåæãé£ããã ã¨ãã£ã¿ãé¸ã¹ãªã 好ããªã¨ãã£ã¿(vi)ã§ã½ã¼ã¹ã³ã¼ãç·¨éãã§ããªãã ãã㯠VBA ã§ããéãä»æ¹ãªãã®ã ããã¨æãããªãã°ãPerl ã® Win32:API ããå©ãæ¹ããããããã¨æã£ã¦ããæ代ãèªåã«ãããã¾ããã (ã¨ãã£ã¦ããIEã®èªååå®è¡ããããããã£ã¦ã¾ããã§ãããã) æä¸ä¸» çºè¦!!¶ ããã¨ã(2012å¹´2æä¸æ¬)ã'vba ã¢ã¸ã¥ã¼ã« å ±æ' 㧠Google ã£ã¦ã¿ãã¨ã id:language_and_engineering ã
#ã¯ããã« ã¹ã¿ã¼ããã¥ãã¤å·¥ååº Advent Calendar 2016 13æ¥ç®ã®è¨äºã§ãã æ¬è¨äºã§ã¯å®è¡å¯è½å½¢å¼ãã¡ã¤ã«ãä½ãã»ã©ã§ããªãã ã¡ãã£ã¨ããå¦çãæ¸ãããã¨ãã«ä¾¿å©ãªVBScriptã«ã¤ãã¦æ¸ãã¾ãã #VBScriptã¨ã¯ WindowsScriptHostãå©ç¨ããWindowsä¸ã®æ¨æºã¹ã¯ãªããè¨èªã§ã æ¡å¼µåã[vbs]ã®ããã¹ããã¡ã¤ã«ãä½æããã°ããã«ã¯ãªãã¯ããã ãã§ãå®è¡ã§ãã¾ãã å®è¡ãã¡ã¤ã«ãä½æããå¿ è¦ããªããããã¹ãã¨ãã£ã¿ã§è¨è¿°ãä¿®æ£ã§ããã®ã§ã©ããªWindowsPCã§ã ç°å¢ãæºåãããã¨ãªãå§ãããã¨ãã§ãã¾ããï¼2016å¹´12æç¾å¨ï¼ ãããªæ軽ãªVBScriptã§ãããæ¬ç¨¿ã§ã¯å°ãæ·±ã使ãè¾¼ãã§ã¿ããã¨æãã¾ãã #WebAPIã«å¯¾ãã¦ãéåæã§éä¿¡ãã WinHTTPã®æ©è½ãå©ç¨ãããã¨ãã§ããã®ã§ãWebAPIã«å¯¾ãã¦éåæã§ã®
Platform Compatibility Analyzerã使ç¨ããã¨ãã¯ãã¹ãã©ãããã©ã¼ã ã§ã®äºææ§ã«åé¡ããã.NET APIãªã©ããã®å ´ãã®å ´ã§è¦ã¤ãã¦ãããã é£è¼ç®æ¬¡ Platform Compatibility Analyzerã¯ãã¯ãã¹ãã©ãããã©ã¼ã ã§ã®äºææ§ã«åé¡ããã.NET APIã使ç¨ãæ¨å¥¨ããã¦ããªã.NET APIãè¦ã¤ãã¦ããããã¼ã«ãæ¬ç¨¿å·çæç¹ï¼2017å¹´11æ6æ¥ï¼ã§ã¯Î±ãã¼ã¸ã§ã³ã§ãããNuGetããã±ã¼ã¸ã¨ãã¦æä¾ããã¦ããã .NET Frameworkã¯èªçããæ¢ã«10å¹´ãè¶ ãããã¬ã¼ã ã¯ã¼ã¯ã§ãããããé«åº¦ãªæ©è½ãæã¤APIãèªçããã¨ããããã®APIã§å¤ãAPIãç½®ãæããããã¨ããæ´å²ãç¹°ãè¿ãã¦ããï¼ä¾ãã°ãHttpClientã¯ã©ã¹ã¯WebClientã¯ã©ã¹ã¨HttpWebRequestã¯ã©ã¹ãç½®ãæãããã®ã ããArrayLis
Visual C++ã®å ´å ãã¼ã¸ã§ã³çªå·ãå®ç¾©ããããã®ãã¡ã¤ã«ãä½æãã¾ããããã¦ãã®ãã¡ã¤ã«ã«å¯¾ãã¦SubWCRevã§ãã¼ã¯ã¼ããç½®æãã¦ããã¨ãã°version.hã¨ãããã¡ã¤ã«ãä½æãã¾ãã #define FILE_VERSION 1, 0, 0, $WCREV$ #define PRODUCT_VERSION 1, 0, 0, $WCREV$ #define STR_FILE_VERSION "1, 0, 0, $WCREV$" #define STR_PRODUCT_VERSION "1, 0, 0, $WCREV$" ãªã½ã¼ã¹ãã¡ã¤ã« (.rc) ã§ããã®ãã¡ã¤ã«ãincludeãã¾ããããã¦ãã¼ã¸ã§ã³çªå·ãå®ç¾©ãã¦ããç®æã«å ã«å®ç¾©ããå®æ°ãè¨è¿°ãããã¨ã§ãããã«ä½æ¥ã³ãã¼ã®ãªãã¸ã§ã³çªå·ãåæ ããã¾ãã ////////////////////////////////
ããèªåã§ã¡ããã£ã¨ä½¿ããã¼ã«ãã©ã¤ãã©ãªãC#ã§ä½ã£ãããã¾ããããã¤ããã«ãããã¨ãã«ãã¼ã¸ã§ã³ãç·¨éããªãã¾ã¾ãã£ã¨åããã¨ãããã¨ã¯ããããã¾ãã ã¾ãã1åä½ã£ã¦ãã°ãã使ã£ã¦å»æ£ãããããªãã®ã ã£ããæ°ã«ããå¿ è¦ã¯ãªããã§ãããçµæ§é·ãé使ããã®ã ã£ãããã¡ããã¡ããä¿®æ£ãæ©è½è¿½å ããããããªãã®ãã©ã¤ãã©ãªçã«ä½¿ããããªãã®ã ã¨ãä½ããèå¥ã§ããããã«ãã¦ãããæ¹ãè¯ããã¨ãããã¾ããã¾ããèªåã§ä½ã£ã¦ãã¦è²ã£ã¦ããæè¦ãå¾ããã¾ãã®ã§ãã¡ããã¨ãã¼ã¸ã§ã³ãç·¨éãã¦ããã®ã¯æªããã¨ãããªãã¨æãã¾ãã .netï¼C#)ã§ã®ãã¼ã¸ã§ã³è¨å® ãã¼ã¸ã§ã³ã¯ãããã¸ã§ã¯ãã®ããããã£ã§è¨å®ããããAssemblyInfo.csãç´æ¥ç·¨éãã¦è¡ãã¾ãã // ã¢ã»ã³ããªã®ãã¼ã¸ã§ã³æ å ±ã¯ã以ä¸ã® 4 ã¤ã®å¤ã§æ§æããã¦ãã¾ã: // // Major Version // Minor
Visual Studio 2017ã®ã¤ã³ã¹ãã¼ã«åã«ãVisual Studio 2013ï¼2015ã¨2017ãã¬ãã¥ã¼ï¼RCçãå®å ¨ã«ã¢ã³ã¤ã³ã¹ãã¼ã«ããã«ã¯ï¼ï¼.NET TIPS ãã£ã¹ã¯å®¹éã®ç¯ç´ããæ§ãã¼ã¸ã§ã³ã¯ãã使ããªãããªã©ã®çç±ã§ãå¤ããã¼ã¸ã§ã³ã®Visual Studioãå®å ¨ã«ã¢ã³ã¤ã³ã¹ãã¼ã«ãããå ´åãããããããã§ããã ãæéãªãå®æ½ããæ¹æ³ãç´¹ä»ããã
ä»äºã§VBScriptã沢山触ã£ã¦è²ã æ©ãã ãã¨ãã¡ã¢ã ããããå¢ããã¾ãã é å åºå®é·é å Dim Array(5)ã£ã¦ããã¨æ·»å0ï½5ã¾ã§ã® è¦ç´ æ°6 ã®é åãã§ããã æ·»åãæ®éã®ã«ãã³ã§æ¬ãã¨ããã®ã¨ãæã£ã¦ãããããè¦ç´ æ°ã1åå¤ãã¨ããã«æ³¨æã ãè¦ç´ æ°5ã®é åãã¤ããããããªãã¦ãæ·»å5ã¾ã§ã®é åãã¤ãããã£ã¦ãã¨ããªã åçé å VBSã§ã¯ãReDimã¹ãã¼ãã¡ã³ãã使ã£ã¦é åã®æ¡å¼µãã§ããã ãã ããReDimã使ããã®ã¯ è¦ç´ æ°ãæå®ããã«å®£è¨ããé å ã®ã¿ã Array(5)ã¯NGã§ãArray()ã¯OKã ãã ReDimã¨ããã¨ãå ã®é åã®ä¸èº«ã¯æ¶ãã¦ãã¾ãã é åã®ä¸èº«ãæ®ããã¾ã¾æ¡å¼µããããå ´åãPreserveãã¤ããã Dim Fruits() ReDim Fruits(1) Fruits(0) = "Apple" Fruits(1) = "Grape"
åºæ¬çãªè¨èªä»æ§ ã¾ã確èªãVBSã§ã¯é¢æ°ï¼ã¨ãµãã«ã¼ãã³ï¼ã®å¼ã³åºãæ¹ã3種é¡ããã 'ã¿ã¤ã1 æ»ãå¤ãåãåããªãå ´åã«ã¯å¼æ°ã«ä¸¸ãã£ããã¤ããªãã MyFunction param 'ã¿ã¤ã2 æ»ãå¤ãåãåãå ´åã«ã¯å¼æ°ã«ä¸¸ãã£ããã¤ããã ret = MyFunction(param) 'ã¿ã¤ã3 Callã使ã£ã¦é¢æ°ãå¼ã³åºãå ´åã«ã¯ä¸¸ãã£ããã¤ããã Call MyFunction(param) â»ãã ãå¼æ°ããªãå ´åã«ã¯ä¸¸ãã£ãã¯ã¤ãã¦ãã¤ããªãã¦ãããã æ··ä¹±ã®åå ? ã§ã¯æ¬¡ã®ã³ã¼ãã¯ã©ããªãã ãããã MyFunction(param) ï¼äºæ³ã«åãã¦ï¼ãã®ã³ã¼ãã¯åé¡ãªãå®è¡ã§ããããããVBSã®é¢æ°ã®å¼ã³åºãææ³ããããã«ãããã¦ããåå ã ã¨æãã 丸ãã£ãã«2ã¤ã®æå³ããã 次ã®ã³ã¼ããè¦ã¦æ¬²ããã ret = MyFunction(param1, (param
æ¥å¹´3æã§1.5å¹´ã»ã©åããç¾å ´ãå»ããé常ã«åããããè·å ´ã ã£ãããå¨å²ã®äººéãã¿ããªè¯ã人ã°ããã ã£ããæ®æ¥ããããªãã«ãã¦520ä¸ç¨åº¦ã ãåå ¥é¢ãã極ãã¦å®ããã¨ãã訳ã§ããªãã£ã(2015/6追è¨ããã£ã±å®ã)ãã ããããã§ã®çµæ´ãå®ç¸¾ã¯ããASP.NETãã¨ã ãæ¸ããããã³ããµã¤ã(ã¬ã¹ãã³ã·ããã¶ã¤ã³ãã¬ã¬ã·ã¼ãã©ã¦ã¶ãSNSé£æº)ãPL/SQLã®ãããä½æãªã©ã®ææã®ã¿ãæ®æ´å¼·èª¿ãããµã¼ãã¼å´ã®è¨èªã«ã¤ãã¦ã¯ãã¾ã触ããªãããã«ããããä½æ ãã¨ããã¨VBã ããã ãVB.NETã¯C#ã®æ¹è¨ãã¨ããè¦æ¹ãå¼·ããªã£ã¦ãããæ´å²çã«è¦ãã°ãããDelphiããç£ã¾ãã¦ãJavaã¨C++ãåé¢æ師ã¨ãã¤ã¤ä¸é¢ãæåãã2002å¹´ã«1.0ãç»å ´ã®C#ããããBASICããé£ãªãVBã®æ¹ãå ¨ç¶å¤åã ãæ±äººæ°çã«ãVBã®æ¹ãå¤ãããã«è¦ãããå ãã¦ãè¨èªä»æ§çã«ãC#ã§åºæ¥ãäºã¯åºæ¬çã«V
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}