HB_ColorIndex()

hb_ColorIndex()

Extract one color from a full colorspec string.

Syntax

      hb_ColorIndex( <cColorSpec>, <nIndex> ) --> <cColor>

Arguments

<cColorSpec> is a color list

<nIndex> is the position of the color item to be extracted, the first position is the zero.

Returns

The selected color string, or if anything goes wrong, an empty string.

Description

CA-Cl*pper has a color spec string, which has more than one color in it, separated with commas.

This function will extract a given item from this list. You may use the manifest constants defined in color.ch to identify and extract common colors.

Examples

      ? hb_ColorIndex( "W/N, N/W", CLR_ENHANCED ) // "N/W"

Compliance

Harbour

Files

Library is rtl

Seealso

ColorSelect()

3 responses to “HB_ColorIndex()

  1. Pingback: Harbour All Functions – H | Viva Clipper !

  2. Pingback: Harbour Terminal Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.