Returning an alpha character from an ASCII codeΒΆ

chr()

Return an alpha character from an ASCII code


SYNTAX

chr(numeric_expression)

This function returns the character that is the ASCII representation of the integer contained in numeric_expression. The value of numeric_expression must be in the range 0-255.

See Control character definitions for a list of useful definitions of control characters for use with this function. These are defined in the standard include file $SCULPTOR/include/sculptor.h.


NOTES

  • The use of characters outside the standard ASCII range 0-127 is non-portable, as some systems do not support these characters.


EXAMPLE

!temp Char,,a1

     tmp.Char = chr(97)
     /* tmp.Char is now "a" */

RELATED TOPICS

asc()