Difference between revisions of "CHR()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to convert a number to an ASCII character
 
Function to convert a number to an ASCII character
 
  
 
==Syntax==
 
==Syntax==
 
CHR(<expN>)
 
CHR(<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[ASC()]], [[CTRL()]], [[HTOA()]], [[STR()]]
 
[[ASC()]], [[CTRL()]], [[HTOA()]], [[STR()]]
 
  
 
==Description==
 
==Description==
 
The CHR() function returns the ASCII character denoted by the numeric value <expN>.  CHR(0) should not be used to convert a field that is part of an index expression, as this will damage the index when the record containing that field is read.
 
The CHR() function returns the ASCII character denoted by the numeric value <expN>.  CHR(0) should not be used to convert a field that is part of an index expression, as this will damage the index when the record containing that field is read.
 
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 11:40, 7 December 2012

Purpose

Function to convert a number to an ASCII character

Syntax

CHR(<expN>)

See Also

ASC(), CTRL(), HTOA(), STR()

Description

The CHR() function returns the ASCII character denoted by the numeric value <expN>. CHR(0) should not be used to convert a field that is part of an index expression, as this will damage the index when the record containing that field is read.

Example

? chr(66)
B
? chr(7)
bell = chr(7)
? type("bell")
C