[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson