| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Returns the background color of a color value.
GetClrBack( <cColor> ) --> cBackgroundColor
The function returns the background 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: | GetClrFore(), HB_ColorToN(), SetColor() |
| Category: | Screen functions |
| Source: | rtl\color53.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example displays results of GetClrBack()
PROCEDURE Main
LOCAL cColor1 := "W+/B"
LOCAL cColor2 := "N/BG"
? GetClrBack( cColor1 ) // result: B
? GetClrBack( cColor2 ) // result: BG
RETURN
http://www.xHarbour.com