Error getting tags :
error 404Error getting tags :
error 404 numToChar | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
numToChar
Basics
Expander triangle
Type
Function
Syntax
the numToChar of ASCIIValue numToChar(ASCIIValue)
Introduced
1.0
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the character corresponding to an ASCII value.
Examples

numToChar(65) -- returns A
numToChar(0) -- returns the null character, ASCII zero

Additional Comments
Expander triangle

Use the numToChar function to translate numbers into their character equivalents, or to interpret a character (such as a control character) that can't be displayed.

Parameters:

The ASCIIValue is an integer between zero and 255, or an expression that evaluates to such an integer. If the useUnicode property is set to true, the ASCIIValue is an integer between zero and 65535.

Value:

The numToChar function returns a single character.

Comments:

The numToChar function is the inverse of the charToNum function.

If the ASCIIValue is between 127 and 255, the character returned by the numToChar function depends on the character set currently in use. On Mac OS systems this is usually the Macintosh character set; on Unix systems, this is usually ISO 8859; on Windows systems, this is usually Code Page 1252, a variant of ISO 8859.

If the useUnicode property is set to true, the numToChar function returns a double-byte character. If the useUnicode is false and you specify an ASCIIValue greater than 255, the numToChar function returns the character corresponding to the ASCIIValue mod 256.

Changes to Revolution:

The ability to handle Unicode characters was introduced in version 2.0. In previous versions, it was not possible for the numToChar function to return a Unicode character.

User Comments
Expander triangle