xHarbour Reference Documentation > Function Reference |
Returns the foreground color of a color value.
GetClrFore( <cColor> ) --> cForegroundColor
The function returns the foreground color of the passed color value as a character string.
Note: refer to function SetColor() for an explanation how colors are encoded in a character string.
See also: | GetClrBack(), HB_ColorToN(), SetColor() |
Category: | Screen functions |
Source: | rtl\color53.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays results of GetClrFore() PROCEDURE Main LOCAL cColor1 := "W+/B" LOCAL cColor2 := "N/BG" ? GetClrFore( cColor1 ) // result: W+ ? GetClrFore( cColor2 ) // result: N RETURN
http://www.xHarbour.com