Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>clr2num() color function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  CLR2NUM()                                                   Color Function
 Purpose..: Return the Clipper color number of a string
-------------------------------------------------------------------------------
 Syntax...: Clr2Num( <cClr> [, 1|2 ] ) --> nClr

 Arguments: <cClr>    = color string.

            [<nPos>]  = 1 represents ForeGround,
                        2 represents Background. The
                        default operation is ForeGround.

 Returns..: <N> nClr is the color attribute number.

 Source...: CLR2NUM.C
-------------------------------------------------------------------------------
 Example..: nFore := Clr2Num( "W+/N", 1 ) // Returns 15
            nBack := Clr2Num( "W+/N", 2 ) // Returns  0

See Also: Attr2Clr() Clr2Attr() ClrTable()

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