Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>chr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CHR()
 Convert an ASCII code to a character value
------------------------------------------------------------------------------
 Syntax

     CHR(<nCode>) --> cChar

 Arguments

     <nCode> is an ASCII code in the range of zero to 255.

 Returns

     CHR() returns a single character value whose ASCII code is specified by
     <nCode>.

 Description

     CHR() is a numeric conversion function that converts an ASCII code to a
     character.  It is the inverse of ASC().  CHR() serves a number of common
     tasks including:

     .  Sending control codes and graphics characters to the screen or
        printer

     .  Ringing the bell

     .  Converting INKEY() return values to characters

     .  Stuffing the keyboard buffer

 Notes

     .  The null character: CHR(0) has a length of one (1) and is
        treated like any other character.  This lets you send it to any
        device or file, including a database file.

 Examples

     .  These examples illustrate CHR() with various arguments:

        ? CHR(72)                    // Result: H
        ? CHR(ASC("A") + 32)         // Result: a
        ? CHR(7)                     // Result: bell sounds

     .  These lines of code show the difference between a null string
        and the null character:

        ? LEN("")                   // Result: 0
        ? LEN(CHR(0))               // Result: 1

 Files   Library is CLIPPER.LIB.


See Also: ASC() INKEY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson