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()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour Terminal Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !