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

📄 delimit.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help #delimit}
{hline}

{title:Title}

{p2colset 5 21 23 2}{...}
{p2col :{hi:[P] #delimit} {hline 2}}Change delimiter{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 17 2}{cmdab:#d:elimit} {c -(} {cmd:cr} | {cmd:;} {c )-}


{title:Description}

{pstd}
The {cmd:#delimit} command resets the character that marks the end of a
command.  It can be used only in do-files and ado-files.


{title:Remarks}

{pstd}
{cmd:#delimit} (pronounced pound-delimit) is a Stata preprocessor command.
{cmd:#}{it:commands} do not generate a return code, nor do they generate
ordinary Stata errors.  The only error message associated with
{cmd:#}{it:commands} is "unrecognized #command".

{pstd}
Commands given from the console are always executed when you press the Enter,
or Return, key.  {cmd:#delimit} cannot be used interactively, so you cannot
change Stata's interactive behavior.

{pstd}
Commands in a do-file, however, may be delimited with a carriage return or a
semicolon.  When a do-file begins, the delimiter is a carriage return.  The
command "{cmd:#delimit ;}" changes the delimiter to a semicolon.  To restore
the carriage return delimiter inside a file, use {cmd:#delimit cr}.

{pstd}
When a do-file begins execution, the delimiter is automatically set to
carriage return, even if it was called from another do-file that set the
delimiter to semicolon.  Also, the current do-file need not worry about
restoring the delimiter to what it was because Stata will do that
automatically.


{title:Examples:}

	{hline 3} top of myfile1.do {hline 15}
	{cmd:use mydata, clear}
	{cmd:#delimit ;}
	{cmd:regress lnwage educ complete age age2}
		{cmd:exp exp2 tenure tenure2}
		{cmd:reg1-reg3 female ;}
	{cmd:predict e, resid ;}
	{cmd:#delimit cr}
	{cmd:summarize e, detail}
	{hline 3} end of myfile1.do {hline 15}


{pstd}
Another way to do this without {cmd:#delimit} would be

	{hline 3} top of myfile2.do {hline 18}
	{cmd:use mydata, clear}
	{cmd:regress lnwage educ complete age age2 /*}
		{cmd:*/ exp exp2 tenure tenure2 /*}
		{cmd:*/ reg1-reg3 female}
	{cmd:predict e, resid}
	{cmd:summarize e, detail}
	{hline 3} end of myfile2.do {hline 18}

{pstd}
See {hi:[U] 16.1.3 Long lines in do-files} for more information.


{title:Also see}

{psee}
Manual:  {bf:[P] #delimit}

{psee}
Online:  {helpb comments}, {help keyboard}
{p_end}

⌨️ 快捷键说明

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