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.2 . The Guide To CA-Clippe - <b>iscolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ISCOLOR()
 Determine if the current computer has color capability
------------------------------------------------------------------------------
 Syntax

     ISCOLOR() | ISCOLOUR() --> lBoolean

 Returns

     ISCOLOR() returns true (.T.) if there is a color graphics card
     installed; otherwise, it returns false (.F.).

 Description

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

 Examples

     .  This example installs color attribute variables at runtime:

        IF ISCOLOR()
           cBox  = "BG+/B, W/N"
           cSays = "BG/B, W/N"
           cGets = "W/N, N/W"
        ELSE
           cBox  = "W+"
           cSays = "W/N, N+/W"
           cGets = "W/N, N/W"
        ENDIF
        .
        . <statements>
        .
        SETCOLOR(cSays)

 Files:  Library is CLIPPER.LIB.

See Also: SETCOLOR()

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