代码拉取完成,页面将自动刷新
同步操作将从 连享会/nwcommands 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
VERSION 10
INCLUDE _std_small
SYNCHRONOUS_ONLY
HELP hlp1, view("help nwsym")
OK ok1, label("OK")
CANCEL can1, label("Cancel")
SUBMIT sub1, label("Submit")
RESET res1
POSITION 10 10 360 180
SCRIPT PREINIT
BEGIN
program initialize
END
DIALOG main, title("nwsym - Symmetrize network")
BEGIN
TEXT tx_var 20 20 100 ., label("Network:")
COMBOBOX cb_var 80 20 210 ., dropdown contents(netlist) nomem append
TEXT tx_add 20 50 70 ., label("Mode:")
COMBOBOX cb_mode 80 50 100 ., content(mode) nomem dropdownlist default("max")
CHECKBOX cx_new 80 80 200 ., label("Generate new network") onclickon(script generateOn) onclickoff(script generateOff)
TEXT tx_new 80 110 150 ., label("New network name:")
EDIT ed_new 80 130 150 ., default("") nomem
END
SCRIPT generateOn
BEGIN
main.tx_new.show
main.ed_new.show
END
SCRIPT generateOff
BEGIN
main.tx_new.hide
main.ed_new.hide
END
LIST mode
BEGIN
max
min
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
PROGRAM initialize
BEGIN
put "_nwdialog nwsym"
stata hidden immediate
END
PROGRAM command
BEGIN
put "nwsym " main.cb_var
put ", mode(" main.cb_mode ")"
if main.cx_new {
if main.ed_new.isneq("") {
put " noreplace name(" main.ed_new ")"
}
if main.ed_new.iseq("") {
put " noreplace"
}
}
stata
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。