xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

GetClrBack()

Returns the background color of a color value.

Syntax

GetClrBack( <cColor> ) --> cBackgroundColor

Arguments

<cColor>
A character string holding a color value consisting of foreground and background color.

Return

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.

Info

See also:GetClrFore(), HB_ColorToN(), SetColor()
Category: Screen functions
Source:rtl\color53.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe