gr_drop.ado
来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· ADO 代码 · 共 48 行
ADO
48 行
*! version 1.0.7 06apr2005
program define gr_drop
version 8
syntax [ anything(name=grlist) ] [, LEAVEinlist noFREE ]
local grlist : list uniq grlist
if `"`grlist'"' == `""' {
di as err "nothing found where graph name expected"
exit 198
}
if `"`grlist'"' == `"_all"' {
_gs_clean_graphlist
local grlist `._Gr_Global.graphlist'
}
local sum 0
foreach name of local grlist {
capture noisily gs_stat exists `name'
local sum = `sum' + _rc
}
if `sum' {
di as error "no graphs dropped"
exit 111
}
foreach name of local grlist {
if ("`free'" == "") _cls free `name'
if "`__UNDO.isa'" != "" {
.__UNDO.clear_graph `name'
}
capture window manage close graph `name'
}
if "`leaveinlist'" == "" { // maintain graph list
local list `._Gr_Global.graphlist'
local list : list list - grlist
._Gr_Global.graphlist = "`list'"
}
local curgraph "`._Gr_Global.current_graph_resync'" // current graph
if 0`:list curgraph in grlist' {
._Gr_Global.set_current_graph ""
}
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?