FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour colour in xbrowse
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
colour in xbrowse
Posted: Wed Aug 10, 2011 07:37 PM

Hello.

I want to set up different line colours depending a condition:

oVMenuBrowse:bClrStd:={|| If(FIELD->LPAID =.F.,{CLR_HRED,CLR_WHITE},{CLR_BLACK,CLR_WHITE}) }

oVMenuBrowse:bClrStd:={|| If(FIELD->LDONE =.T.,{CLR_BLUE,CLR_WHITE},{CLR_BLACK,CLR_WHITE}) }

But it only takes last one, not both.

Thank you very much.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: colour in xbrowse
Posted: Wed Aug 10, 2011 08:04 PM

Hello

Try

oVMenuBrowse:bClrStd:={|| { If( ! FIELD->LPAID, CLR_HRED,If(FIELD->LDONE, CLR_BLUE, CLR_BLACK ) ), CLR_WHITE } }

Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: colour in xbrowse
Posted: Thu Aug 11, 2011 10:21 AM

Thank you.

It works perfect.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82

Continue the discussion