1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwdrop.dlg 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-09-18 19:13 . v1.5.1
VERSION 11.0
SYNCHRONOUS_ONLY
INCLUDE _std_medium
INCLUDE header
HELP hlp1, view("help nwdrop")
RESET res1
SCRIPT PREINIT
BEGIN
program initialize
END
DIALOG main, label("nwdrop/nwkeep - Drop or keep networks/nodes") tabtitle("Main")
BEGIN
GROUPBOX gb_main 20 20 370 70, label("")
RADIO rb_drop 30 40 200 ., nomem label("Drop networks") first onclickon(script detailsOff)
RADIO rb_keep 30 60 200 ., nomem label("Keep networks") middle onclickon(script detailsOff)
RADIO rb_dropnodes 170 40 200 ., nomem label("Drop nodes") middle onclickon(script detailsOn)
RADIO rb_keepnodes 170 60 200 ., nomem label("Keep nodes") last onclickon(script detailsOn)
TEXT tx_net1 30 100 200 200, label("Selected networks:")
COMBOBOX cb_net 30 120 270 ., nomem dropdown label("cbNet") contents(netlist) append
TEXT tx_if 50 150 200 ., label("If: (expression)")
EXP ex_if 140 150 230 ., label("Create...")
TEXT tx_att 50 180 200 ., label("Attributes:")
VARLIST vr_att 140 180 230 ., nomem label("Attributes")
CHECKBOX cx_netonly 140 210 200 ., label("Leave Stata variables untouched")
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
LIST netlist_append
BEGIN
// left empty
END
SCRIPT detailsOff
BEGIN
main.tx_if.hide
main.ex_if.hide
main.vr_att.hide
main.tx_att.hide
END
SCRIPT detailsOn
BEGIN
main.tx_if.show
main.ex_if.show
main.vr_att.show
main.tx_att.show
END
PROGRAM initialize
BEGIN
put "_nwdialog nwdrop"
stata hidden immediate
END
PROGRAM command
BEGIN
if main.rb_dropnodes {
put " nwdrop " main.cb_net
require main.ex_if
}
if main.rb_drop {
put " nwdrop " main.cb_net
}
if main.rb_keepnodes {
put " nwkeep " main.cb_net
require main.ex_if
}
if main.rb_keep {
put " nwkeep " main.cb_net
}
if main.ex_if {
ifexp main.ex_if
}
if main.vr_att | main.cx_netonly {
put ", "
if main.vr_att {
put "attributes(" main.vr_att ") "
}
if main.cx_netonly {
put "netonly"
}
}
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385