Difference between revisions of "SET EMACROS"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=SET EMACROS=
 
 
 
 
==Class==
 
==Class==
 
Environment
 
Environment
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[&]], [[TEXT]], [[SET MACROS]]
+
[[&]], [[SET MACROS]], [[TEXT]]
  
  
Line 21: Line 18:
 
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 24:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set emacros off
 
set emacros off
 
text
 
text
Line 34: Line 31:
 
of memory variables.
 
of memory variables.
 
endtext
 
endtext
set emacros on</pre>
+
set emacros on</code>
  
  

Revision as of 15:07, 15 April 2009

Class

Environment


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 Database Server, Recital Mirage Server, Recital Terminal Developer