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

📄 class_exit.hlp

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

{title:Title}

{p2colset 5 23 25 2}{...}
{p2col :{hi:[P] class exit} {hline 2}} Exit class member program and return result{p_end}
{p2colreset}{...}


{title:Syntax}

        {cmd:class exit} [{it:rvalue}]

{phang}
where {it:rvalue} is

        {cmd:"}[{it:string}]{cmd:"}
        {cmd:'"}[{it:string}]{cmd:"'}
        {it:#}
        {it:exp}
        {cmd:(}{it:exp}{cmd:)}
        {cmd:.}{it:id}[{cmd:.}{it:id}[...]] [{it:program_arguments}]
        {cmd:{c -(}}{cmd:{c )-}}
        {cmd:{c -(}}{it:el}[{cmd:,}{it:el}[{cmd:,}...]]{cmd:{c )-}}

{phang}
See {help classassign} for more information on {it:rvalues}


{title:Description}

{pstd}
{cmd:class exit} exits a class-member program and optionally returns the
specified result.

{pstd}
{cmd:class exit} may be used only from class-member programs; see 
{help classman}.


{title:Remarks}

{pstd}
Do not confuse returned values with return codes, which all Stata programs
set, including member programs.  Member programs exit when they execute

	Condition                       returned value    return code
	{hline 64}
	{cmd:class exit} with arguments       as specified      0
	{cmd:class exit} without arguments    nothing           0
	{cmd:exit} without arguments          nothing           0
	{cmd:exit} with arguments             nothing           as specified
	{cmd:error}                           nothing           as specified
	command having error            nothing           as appropriate
	{hline 64}

{pstd}
Any of the preceding are valid ways of exiting a member program, although the
last is perhaps best avoided.  {cmd:class exit} without arguments has the same
effect as {cmd:exit} without arguments; it does not matter which you use.


{title:Examples}

	{cmd}class exit sqrt(('.c0.y'-'.c1.y')^2 + ('.c0.x'-'.c1.x')^2)
	class exit "'myresult'"
	class exit { 'one', 'two' }
	class exit .coord
	class exit .coord.x
	tempname a
	{txt:...}
	class exit .'a'{txt}


{title:Also see}

{psee}
Manual:  {bf:[P] class exit}{p_end}

{psee}
Online:  {help class}, {help classman}, {helpb exit}
{p_end}

⌨️ 快捷键说明

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