Difference between revisions of "SET EMACROS"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET EMACROS=
 
 
 
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable or disable & macro substitution
 
Enable or disable & macro substitution
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[&]], [[TEXT]], [[SET MACROS]]
+
[[&]], [[SET MACROS]], [[TEXT]]
  
  
Line 21: Line 14:
 
The SET EMACROS command is synonymous with SET MACROS.  If SET EMACROS is ON, & macros are substituted when command lines are read.  If SET EMACROS is OFF, then no macro substitution is performed.
 
The SET EMACROS command is synonymous with SET MACROS.  If SET EMACROS is ON, & macros are substituted when command lines are read.  If SET EMACROS is OFF, then no macro substitution is performed.
  
SET EMACROS OFF can be used to marginally accelerate program execution and also disable macro substitution in TEXT…ENDTEXT blocks.
+
SET EMACROS OFF can be used to marginally accelerate program execution and also disable macro substitution in TEXT...ENDTEXT blocks.
  
 
By default, SET EMACROS is ON.
 
By default, SET EMACROS is ON.
Line 27: Line 20:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set emacros off
 
set emacros off
 
text
 
text
Line 34: Line 27:
 
of memory variables.
 
of memory variables.
 
endtext
 
endtext
set emacros on</pre>
+
set emacros on</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|EMACROS]]
 
[[Category:Set_Commands|EMACROS]]
 +
[[Category:Environment]]
 +
[[Category:Environment Set Commands]]

Latest revision as of 15:46, 23 November 2009

Purpose

Enable or disable & macro substitution


Syntax

SET EMACROS ON | OFF | (<expL>)


See Also

&, SET MACROS, TEXT


Description

The SET EMACROS command is synonymous with SET MACROS. If SET EMACROS is ON, & macros are substituted when command lines are read. If SET EMACROS is OFF, then no macro substitution is performed.

SET EMACROS OFF can be used to marginally accelerate program execution and also disable macro substitution in TEXT...ENDTEXT blocks.

By default, SET EMACROS is ON.


Example

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


Products

Recital Server, Recital