Guys:
How can I change a cell color, based on a condition, in xBrowse ? For example if an amount is less than zero, change the whole amount the red color to bright white over red (on text would be "W+/R") ?
Thank you.
Guys:
How can I change a cell color, based on a condition, in xBrowse ? For example if an amount is less than zero, change the whole amount the red color to bright white over red (on text would be "W+/R") ?
Thank you.
oLbx:aCols[7]:bClrstd := {|| { CLR_BLACK, If( oPo:myob, CMYOBCOL, CBRWBACK) } }
Hope this helps
Colin
Colin:
Thank you, I'll give it a try.

FUNCTION SHOW_VKEYS(cKey)
LOCAL cKeySearch := "? Â ", I := 1, nBRow := 1
LOCAL nKey := LEN(cKey)
DBSELECTAREA("VKEY")
DBGOTOP()
DO WHILE !EOF()
  IF cKey = SUBSTR( VKEY->KEY1, 1, nKey) Â
    cKeySearch := VKEY->VALUE1
    nCPos := 1
    nBRow := VKEY->(ORDKEYNO())
    EXIT
  ELSEIF cKey = SUBSTR( VKEY->KEY2, 1, nKey) Â
    cKeySearch := VKEY->VALUE2 Â
    nCPos := 3
    nBRow := VKEY->(ORDKEYNO())
    EXIT
  ELSEIF cKey = SUBSTR( VKEY->KEY3, 1, nKey) Â
    cKeySearch := VKEY->VALUE3
    nCPos := 5
    nBRow := VKEY->(ORDKEYNO())
    EXIT
  ENDIF
  DBSKIP(+1)
ENDDO
oBrw2:aCols[nCPos]:bClrstd := {|| { nBTColor1, If( nBRow = oBrw2:KeyNo(), nBCSELECT, nBColor1 ) } }
oBrw2:aCols[nCPos + 1]:bClrstd := {|| { nBTColor2, If( nBRow = oBrw2:KeyNo(), nBCSELECT, nBColor2 ) } }
RETURN ( cKeySearch )