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

📄 classmacro.hlp

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

{title:Appendix C.3:  Macro substitution}

{pstd}
Values of member variables or values returned by member programs can be
substituted in any Stata command line in any context using macro quoting.
The syntax is

{p 8 12 2}
...{cmd:`}{cmd:.}{it:id}[{cmd:.}{it:id}[...]]{cmd:'}...

{p 8 12 2}
...{cmd:`}[{cmd:.}{it:id}[{cmd:.}{it:id}[...]]]{cmd:.}{it:pgmname}{cmd:'}...{break}

{p 8 12 2}
...{cmd:`}[{cmd:.}{it:id}[{cmd:.}{it:id}[...]]]{cmd:.}{it:pgmname} {it:pgm_arguments}{cmd:'}...

{p 8 12 2}
...{cmd:`}[{cmd:.}{it:id}[{cmd:.}{it:id}[...]]]{cmd:.Super}[{cmd:(}{it:classname}{cmd:)}]{cmd:.}{it:pgmname}{cmd:'}...

{p 8 12 2}
...{cmd:`}[{cmd:.}{it:id}[{cmd:.}{it:id}[...]]]{cmd:.Super}[{cmd:(}{it:classname}{cmd:)}]{cmd:.}{it:pgmname} {it:pgm_arguments}{cmd:'}...

{p 4 8 2}
Nested substitutions are allowed.  For example,

{p 8 12 2}
	...{cmd:`.`tmpname'.x'}...

{p 8 12 2}
	...{cmd:``ref''}...

{pstd}
In the above, perhaps local {cmd:tmpname} was obtained from {helpb tempname}
and perhaps local {cmd:ref} contains "{cmd:.myobj.cvalue}".

{pstd}
When a class object is quoted, its printable form is substituted.  This is
defined:

	Object type      printable form
	{hline 61}
	{cmd:string}           contents of the string
	{cmd:double}           number printed using {cmd:%18.0g}, spaces stripped
	{cmd:array}            nothing
	{it:classname}        nothing or, if member program {cmd:.macroexpand}
			 is defined, the {cmd:string} or {cmd:double} returned
	{hline 61}

{pstd}
If the quoted reference results in an error, the error message is suppressed and
nothing is substituted.


{title:Description}

{pstd}
See {help classman} for more information.


{title:Also see}

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

{psee}
Online:  {help class}, {help classman};{break}
{help classdeclare}, {help classassign}, {help classbi}
{p_end}

⌨️ 快捷键说明

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