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>colorrepl()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
COLORREPL()

Syntax:     COLORREPL(<attr1>[,<attr2>])

Arguments:  <attr1> denotes the new attribute(default: standard attribute
            CLEARA).
            <attr2> contains the attribute to be changed.

Returns:    A character string.
            A null string is returned.

Usage:      COLORREPL() can simplify screen handling.  With this
            function it is possible to exchange all <attr2> attributes with
            <attr1> attributes.  The color of all input fields can be
            changed after a read, presuming that they have a specific
            common attribute.  It is then easy to make it known that
            these fields are no longer active.

Notes:      If the <attr1> argument is not specified, all screen attributes
            will be exchanged for the <attr2> attribute.  If the <attr1> is
            also missing, then the CLEARA default attribute will be used.

Library:    CT1.LIB


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

Examples:   * Exchange all attribute 7 (white on black) for
            * 0 (black on black = invisible).
            COLORREPL(0,7)

            * Replace all attributes for the attribute 120
            * (red on white).
            COLORREPL(120)

            * Exchange attribute "7/10" (white on black)
            * for 120 (red on white).
            COLORREPL(120,"7/10")

            * Exchange all attributes for the standard
            * attribute CLEARA.
            COLORREPL()

            * Change the display white on black into black
            * on white.  The  arguments may be specified
            * differently.
            COLORREPL("0/7")
            COLORREPL(112,7)

            * Mixed forms are also possible.
            COLORREPL("0/7",7)



See Also: COLORWIN()

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