Re: Change the colour of rows in a grid based on data

Author: Frank Cazabon

Posted: 2010-09-22 at 14:52:27

How does a colour blind person tell the difference between out for

delivery and supposed to have been delivered yesterday? ;)

Frank.

Frank Cazabon

Samaan Systems Ltd. - Developing Solutions

www.SamaanSystems.com

Referrals are important to us.

If you know of anyone who would benefit from our services, please contact me. We would appreciate the opportunity to work with them.

On 22/09/2010 02:45 PM, Jeff Johnson wrote:

> Actually this is a grid of orders. Each letter stands for a different

> order status. ie orders are green if they are out for delivery, yellow

> if they are late, and red if they were supposed to be delivered yesterday.

>

> Jeff

>

> ---------------

>

> Jeff Johnson

> jeff@san-dc.com

> (623) 582-0323

>

> www.san-dc.com

>

>

> On 09/22/2010 11:42 AM, Stephen Russell wrote:

>> On Wed, Sep 22, 2010 at 1:27 PM, Jeff Johnson<jeff@san-dc.com> wrote:

>>

>>> This is in the init of the grid

>>>

>>> .SetAll("DynamicBackColor", ;

>>> "IIF(RECNO(THIS.RecordSource) = THIS.ncurrentrecord," + ;

>>> "THIS.gridactivebackcolor," + ;

>>> "IIF(vtank.cur_ostat = 'S'," + ;

>>> "RGB(0,255,0)," + ;

>>> "IIF(vtank.cur_ostat = 'A'," + ;

>>> "RGB(0,200,0)," + ;

>>> "IIF(vtank.cur_ostat = 'D'," + ;

>>> "RGB(0,128,0)," + ;

>>> "IIF(vtank.cur_ostat ='W'," + ;

>>> "RGB(255,0,0)," + ;

>>> "IIF(vtank.cur_ostat = 'C'," + ;

>>> "RGB(0,0,255)," + ;

>>> "THIS.griddefaultbackcolor))))))", ;

>>> "COLUMN")

>>>

>>> This colors the rows in a grid based on order status. ;^)

>>>

>> ----------------

>>

>> What are you double rainbow man?

>>

>> ;->

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C9A506B.5060400@gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Frank Cazabon