Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_extcolor() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_EXTCOLOR()

 DESCRIPTION

 C_EXTCOLOR() returns the foreground and background color for any
 part of a specified color string.  The dBASE/Clipper color string
 is divided into five color parts:  standard, enhanced, border,
 background, and unselected.  This function can return any one of
 the five color parts by specifying a value one through five.

 SYNTAX

 C_EXTCOLOR(color [,number])

 PARAMETERS

 color (C) is the color string for extracting the color.

 number (N) is the part of the color string to extract.  Specify a
 value one through five (1 - 5) to extract one of the five parts of
 the dBASE/Clipper color string (standard, enhanced, border,
 background, unselected).  If number is not specified, the first
 part (standard) is returned.  The following table shows the
 components of the dBASE/Clipper color string:

 VALUE  COLOR STRING COMPONENTS
 -----  -----------------------
 1      Standard color
 2      Enhanced color
 3      Border color
 4      Background color
 5      Unselected color

 (Refer to Chapter 3 for a complete discussion about dBASE/Clipper
 color strings.)

 RETURNS

 C_EXTCOLOR() returns a character string of the foreground and
 background color extracted from the given color string.

 EXAMPLES

 ? c_extcolor("W+/B")                   --> W+/B
 ? c_extcolor("W/B,B/W,G/N,BG/N,W/R",4) --> BG/N
 ? c_extcolor("R*+/BG,W+/N",2)          --> W+/N

 color1 = "W+/B,B/W,,,W+/R"
 ? c_extcolor(color1, 1) --> W+/B
 ? c_extcolor(color1, 2) --> B/W
 ? c_extcolor(color1, 3) -->         && (none - empty)
 ? c_extcolor(color1, 4) -->         && (none - empty)
 ? c_extcolor(color1, 5) --> W+/R


See Also: C_STRPARSE() C_REVCOLOR() C_LOWCOLOR() C_FGCOLOR()

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