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

📄 save_option.dlg

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 DLG
字号:
/*
    save_option.dlg

*!  VERSION 1.0.0  17jan2005

*/

VERSION 9.0

INCLUDE _std_large
INCLUDE _ht250
INCLUDE header
HELP hlp1, view("help save")
RESET res1

DIALOG main,label("save - Save datasets")  tabtitle("Main")
BEGIN
  GROUPBOX gb_using           _lft     _top     _iwd        _ht4, 			///
	label("Location to save dataset")

  TEXT     tx_using           _ilft    _ss      _ibwd       .,				///
	label("Filename:")

  FILE     fi_using           @        _ss      @           .,				///
	filter("Stata Dataset (*.dta)|*.dta|All (*.*)|*.*")				///
	defext(dta)									///
	default(c(filename))								///
	error("Filename of dataset on disk")						///
	label("Browse...")

  GROUPBOX gb_opt             _lft     _xls     _iwd        _ht10, 			///
	label("Options")

  CHECKBOX ck_intercooled     _ilft    _ss      _ibwd	    .,				///
	label("Write dataset in the Intercooled Stata format.")				///
	option(intercooled)

  CHECKBOX ck_nolabel         @        _ms      @           .,				///
	label("Omit value labels from the saved dataset.")				///
	option(nolabel) 								///
	onclickon(program nolabel_on)							///
	onclickoff(program nolabel_off)

  CHECKBOX ck_orphans         @        _ms      @           .,				///
	label("Save all value labels, including those not attached to any variable.")	///
	option(orphans)									///
	onclickon(main.ck_nolabel.disable)						///
	onclickoff(main.ck_nolabel.enable)

  CHECKBOX ck_saveold         @        _ms      @           .,				///
	label("Save dataset in Stata's version 7 format.")				///
	option(saveold)									///
	onclickon(program saveold_on)							///
	onclickoff(program saveold_off)
END

PROGRAM nolabel_on
BEGIN
  call gaction main.ck_orphans.disable
END

PROGRAM nolabel_off
BEGIN
  if !main.ck_saveold {
    call gaction main.ck_orphans.enable
  }
END

PROGRAM saveold_on
BEGIN
  call gaction main.ck_orphans.disable
  if main.ck_orphans | D(main.ck_orphans) {
  	call main.ck_nolabel.enable
  }
END

PROGRAM saveold_off
BEGIN
  if !main.ck_nolabel | D(main.ck_nolabel) {
    call gaction main.ck_orphans.enable
  }
  if main.ck_orphans {
    call main.ck_nolabel.disable
  }
END

PROGRAM command
BEGIN
	require main.fi_using
	repfile main.fi_using
	if !main.ck_saveold {
		put "save "
	}
	if main.ck_saveold {
		put "saveold "
	}
	put `"""' main.fi_using `"""'
	beginoptions
		put "replace "
		option main.ck_intercooled
		option main.ck_nolabel
		option main.ck_orphans
	endoptions
END

⌨️ 快捷键说明

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