需求描述: 写shell脚本的过程中,有时会需要获取脚本的名字,比如,有的时候,脚本 中会有usage()这种函数,可能就会用到脚本的名字. 实现方法: shell脚本中,通过使用$0就可以获取到脚本的名字或者说脚本本身. 操作过程: 1.通过以下的脚本写了一个脚本的使用函数usage() #!/bin/bash #function usage means how to use this script. usage() { echo "Usage: $0 process_name1"
var main=mygrid.gettable("11"); //表示获取非固定列的表格 var main1=mygrid.gettable("01");//表示获取固定列的表格 ///var quantity= mygridgetcolnumber(0,"quantity"); //var per_quantity= mygridgetcolnumber(0,"per_quantity"); var planquantit
compared all possibilities with a long test sheet: 0,140625 sec for lastrow = calcws.Cells.Find("*", [A1], , , xlByColumns, xlPrevious).row 0 sec for iLastRow = calcws.Cells(rows.count, "a").End(xlUp).row and numofrows = calcws.Cells.S
最近需要做一个一劳永逸的XML文档生成,给项目内部专用的,直接VBA方便了,才第一次用.现学现卖了....抽时间还是系统的学习下这方面的知识吧 输出到UTF-8编码的XML文档.并且换行符是Unix的\n换行符. Sub WriteToXml() Dim FilePath As String Dim ClientID As String Dim Name As String Dim LastCol As Long Dim LastRow As Long Dim fso As FileSystem