ISCOLOR

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)

Seealso

SETCOLOR()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s