Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在Stata的全局宏中放置一个全局宏。
比如 ,$hello$oneworld就是宏$one里面的全局宏$helloworld。
$hello$oneworld
$one
$helloworld
如何在全局宏中获取全局宏?
[U] 18.3.10 中介绍了全局宏的高级操作,它与 Stata 捆绑在一起,可在 www.stata.com/manuals/u18.pdf 独立访问
只是 的内容$hello后跟 ; 的$oneworld内容 如果未定义全局宏,则在任何一种情况下都被评估为空。
$hello
$oneworld
我不明白你想看到什么,但花括号允许一些微妙的效果。总体而言,使用本地宏更容易嵌套宏引用,这通常对于几乎所有目的都非常可取。
你也许应该给出你想要达到的目标的例子。