代码拉取完成,页面将自动刷新
同步操作将从 连享会/nwcommands 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
insheet
*! VERSION 1.1.4 09sep2011
*/
VERSION 9.0
SYNCHRONOUS_ONLY
HELP hlp1, view("help nwimport")
POSITION . . 500 300
OK ok1, label("OK")
CANCEL can1, label("Cancel")
SUBMIT sub1, label("Submit")
RESET res1
SCRIPT PREINIT
BEGIN
program initialize
END
DIALOG main,label("nwimport - Import Ucinet file")
BEGIN
TEXT tx_using 10 10 200 30, ///
label("Ucinet network filename:")
FILE fi_using @ +20 450 ., ///
filter("Ucinet (*.dat)|*.dat|All (*.*)|*.*") ///
defext(raw) ///
error("Ucinet network filename") ///
label("Browse...") ///
onchange("program repop")
TEXT tx_vl 10 +40 @ ., ///
label("New network names: (optional)")
EDIT ed_name 10 +20 450 ., ///
label("Optional new variable names") default("")
CHECKBOX ck_nwclear 10 +30 @ ., ///
option(nwclear) nomem label("Replace networks in memory") ///
onclickon("program repop")
CHECKBOX ck_xvars 250 @ @ ., ///
option(xvars) nomem label("No Stata variables")
END
PROGRAM initialize
BEGIN
put "do nwimport.ado"
stata immediate
put "do _nwdialog.ado"
stata immediate
main.ed_name.setvalue "xx"
//put "di hallo"
//stata immediate
//.main.ed_name.setvalue "xx"
//put "do _nwdialog.ado"
//stata hidden immediate
//put "_nwimpdl "
//put fi_using
//put ", netlistonly"
//stata immediate
//put "_nwrepopulateedit `r(netlabs)'"
//stata immediate
END
PROGRAM repop
BEGIN
put "_nwimpdl "
put main.fi_using
put ", netlistonly"
stata immediate
put "return list"
stata immediate
put "_nwrepopulateedit `r(netlabs)'"
stata immediate
END
PROGRAM command
BEGIN
put "nwimport "
require main.fi_using
put `"""' main.fi_using `"""'
beginoptions
option main.ck_nwclear
option main.ck_xvars
put "type(ucinet)"
put "name("
put main.ed_name
put ")"
endoptions
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。