xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

GetClrFore()

Returns the foreground color of a color value.

Syntax

GetClrFore( <cColor> ) --> cForegroundColor

Arguments

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

Return

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.

Info

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

Example

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

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