⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _clsarr2list.ado

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 ADO
字号:
*! version 1.0.0  30jul2002
/*  
    Returns in the specified local macro name a list of the contents of the
    specified class-system array.  Places double quotes around any items that
    have embedded spaces or items that are blank or not in the array.

    Usage:  _namelist macname : `.a.b.arrname.objkey'
    				or
            _namelist macname : .a.b.arrname

    could be made a builtin for arrays 
*/

program define _clsarr2list
	version 7

	args macname colon clsarray

	forvalues i = 1/0`.`clsarray'.arrnels' {
		local name `.`clsarray'[`i']'
		local unused : subinstr local name " " " ", all count(local ct)
		if `ct' > 0  | "`name'" == "" {
			local namelist `namelist' "`name'"
		}
		else	local namelist `namelist' `name'
	}

	c_local `macname' `namelist'
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -