Difference between revisions of "SET MAPCHAR"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET MAPCHAR=
 
 
 
==Class==
 
Input/Output
 
 
 
 
==Purpose==
 
==Purpose==
 
Define an alternate character to map CHR(0)
 
Define an alternate character to map CHR(0)
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
CHR(), ???, ASC()
+
[[???]], [[ASC()]], [[CHR()]]
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
? chr(64)
 
? chr(64)
 
@
 
@
 
set mapchar to 64
 
set mapchar to 64
? chr(0)</pre>
+
? chr(0)
 
@
 
@
 
+
</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]]
+
[[Category:Set_Commands|MAPCHAR]]
 +
[[Category:Input Output]]
 +
[[Category:Input Output Set Commands]]
 +
[[Category:Printing]]
 +
[[Category:Printing Set Commands]]

Latest revision as of 16:22, 23 November 2009

Purpose

Define an alternate character to map CHR(0)


Syntax

SET MAPCHAR TO <expN>


See Also

???, ASC(), CHR()


Description

The SET MAPCHAR TO command allows the user to define an alternate character to map CHR(0) for output processing. Whenever the CHR(0) function is used, or the ??? "{NULL}" command is used and MAPCHAR is set to a value other than 0, the CHR(0) character is translated into the character specified by the decimal value in <expN>. On output any occurrences of the character specified by <expN> will be translated back to CHR(0). Setting MAPCHAR TO 0 disables character mapping. The default setting is 0.


Example

? chr(64)
@
set mapchar to 64
? chr(0)
@

Products

Recital Server, Recital