Viva Clipper !

Chr()

Advertisements

 

CHR()

Converts an ASCII value to it character value

Syntax

      CHR( <nAsciiNum> )  --> cReturn

Arguments

<nAsciiNum> Any ASCII character code.

Returns

<cReturn> Character expression of that ASCII value

Description

This function returns the ASCII character code for <nAsciiNum>. The number expressed must be an integer value within the range of 0 to 255 inclusive. The CHR() function will send the character returned to whatever device is presently set.

The CHR() function may be used for printing special codes as well as normal and graphics character codes.

Examples

      ? CHR( 32 )
      ? chr( 215 )

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ASC(), INKEY()

Advertisements

Advertisements