Difference between revisions of "SET MACROS"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET MACROS=
 
 
 
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable & macro substitution
 
Enable or disable & macro substitution
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
&, TEXT, SET EMACROS
+
[[&]], [[SET EMACROS]], [[TEXT]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set macros off
 
set macros off
 
text
 
text
Line 30: Line 23:
 
of memory variables.
 
of memory variables.
 
endtext
 
endtext
set macros on</pre>
+
set macros on</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Set_Commands|MACROS]]
 +
[[Category:Environment]]
 +
[[Category:Environment Set Commands]]

Latest revision as of 16:13, 23 November 2009

Purpose

Enable or disable & macro substitution


Syntax

SET MACROS ON | OFF | (<expL>)


See Also

&, SET EMACROS, TEXT


Description

If SET MACROS is ON, then Recital substitutes & macros 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.


Example

set macros off
text
The & command is used to perform
macro substitution of the contents
of memory variables.
endtext
set macros on


Products

Recital Server, Recital