This message is pertinent only to those of you using edd/dm 2.0 or later.
David wrote:
>
> I'm trying to use dm colour rules to change the colour of a text monitor
> according to the value of a database field of type double. For values of
> 0.0 or greater this works fine but I can't get it to work with negative
> values; it behaves as if the expression is always false.
>
> The rule in the edd report looks like:
>
> name="test"
> info[0] {
> chan="$(C)"
> value="-1.0"
> connector="use"
> comparator="less than"
> clr="1"
> RISCpad="0"
> }
>
> Should this work ? If not, is there any other way of doing what I want ?
>
Yes, it should work. Unfortunately, as David reported, it doesn't!
To fix it, look in rti/dynamic_graphics.c and apply the following change:
int evalColoRule( valStr, pComel, comparator)
.
.
.
if(isdigit(*valStr)){
********
change the last line to be
if(isdigit(*valStr) || *valStr == '-'){
********
This is a quick fix, but I've tested it and it works. I'll try to rework
the color rule comparisons soon and will come up with something better.
Thanks, David. I'm not surprised there was a bug, but I'm surprised it
took so long for someone to notice :) !
Deb
**********************************************************************
Deb Kerstiens [email protected]
Phone (505)667-3396
LANL AOT-8,MSH820 PO Box 1663, Los Alamos, NM. 87545
**********************************************************************
- Navigate by Date:
- Prev:
Re: A tool to support development of GP-IB device support routine. Noboru Yamamoto
- Next:
Re: A24 DMA into the hk nitro 60 Nick Rees
- Index:
1994
1995
<1996>
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: dm colour rules with -ve values Deb Kerstiens
- Next:
Re: CA connection Jeff Hill
- Index:
1994
1995
<1996>
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|