Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>ntocolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NTOCOLOR()

Syntax:     NTOCOLOR(<expN>)

Arguments:  <expN> is the value of the combined numerical color attribute.

Returns:    A character string.
            Supplies the color attribute in the form "nn/nn".

Usage:      The function is intended to convert a color attribute in a
            numerical form, into a alphanumeric data format.  It is then
            possible to use this attribute in conjunction with the Clipper
            SET COLOR TO command.

Notes:      NTOCOLOR() will return a null string for an invalid argument or a
            numerical color attribute.  Valid values for the argument lie
            between 0 and 255.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * "Normal" display (white on black).
            * The numerical form 7 produces "07/00".
            ? NTOCOLOR(7)

            * Display red on white.
            * The numerical form 116 produces "04/07"
            ? NTOCOLOR(116)

            * An invalid argument will return a null string.
            ? NTOCOLOR(380)
            ? NTOCOLOR( -1)



See Also: COLORTON()

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