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


Syntax:     ISCOLOR()/ISCOLOUR()

Purpose:    To determine if the computer running a Clipper-compiled
            program has a color graphics card installed.

Returns:    A logical value.

            ISCOLOR() returns a true (.T.) if there is a color graphics
            card installed.

Usage:      ISCOLOR() allows you to make decisions about type of screen
            attributes to assign (color or monochrome).  Note that some
            monochrome adapters with graphics capability return true
            (.T.).

Library:    CLIPPER.LIB


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

   The following installs color attribute variables at runtime:

   IF ISCOLOR()
      c_box  = "BG+/B, W/N"
      c_says = "BG/B,  W/N"
      c_gets = "W/N,   N/W"
   ELSE
      c_box  = "W+"
      c_says = "W/N, N+/W"
      c_gets = "W/N, N/W"
   ENDIF


See Also: SET COLOR SETCOLOR()

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