Difference between revisions of "SET MACROS"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) (→Description) |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
If SET MACROS is ON, then & macros are substituted when command lines are read. If SET MACROS is OFF, then no macro substitution is performed. This command can be used to marginally accelerate program execution. Also, macros are normally substituted in the TEXT ... ENDTEXT command. Setting MACROS OFF disables this. See the & function for more details concerning macro substitution. By default MACROS is ON, so macro substitution is performed. | If SET MACROS is ON, then & macros are substituted when command lines are read. If SET MACROS is OFF, then no macro substitution is performed. This command can be used to marginally accelerate program execution. Also, macros are normally substituted in the TEXT ... ENDTEXT command. Setting MACROS OFF disables this. See the & function for more details concerning macro substitution. By default MACROS is ON, so macro substitution is performed. | ||
− | + | [[&]] macro substitution is also supported in the [[Command Window]], [[Console Workspace]] and [[Console Tab]] in the App Inspector from v4.1. | |
==Example== | ==Example== |
Latest revision as of 05:54, 6 April 2018
Contents
Purpose
Enable or disable & macro substitution
Syntax
SET MACROS ON | OFF | (<expL>)
See Also
&, SET EMACROS, TEXT
Description
If SET MACROS is ON, then & macros are substituted when command lines are read. If SET MACROS is OFF, then no macro substitution is performed. This command can be used to marginally accelerate program execution. Also, macros are normally substituted in the TEXT ... ENDTEXT command. Setting MACROS OFF disables this. See the & function for more details concerning macro substitution. By default MACROS is ON, so macro substitution is performed.
& macro substitution is also supported in the Command Window, Console Workspace and Console Tab in the App Inspector from v4.1.
Example
set macros off text The & command is used to perform macro substitution of the contents of memory variables. endtext set macros on