Dude, you can't be posting that to a newbie list!!! :Oo

:OD

I like smaller inline code like that but I've learnt to stay away from
'immediate if'. I did go through a phase of using it but I used to do that
all the time just to see have I got on using things.

Ade

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 15:39
To: CF-Newbie
Subject: RE: change font color based on content


To me, this would be more efficient

IIf(yourQuery.Status EQ "Online", DE("Green"), DE("Red"))




-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 15:34
To: CF-Newbie
Subject: RE: change font color based on content

<cfif yourQuery.Status EQ "OFFLINE">
        colour the font red here
<cfelseif yourQuery.Status EQ "ONLINE">
        colour the font green here
</cfif>

Something like that?

Ade

-----Original Message-----
From: Scot VanAlstine [mailto:[EMAIL PROTECTED]
Sent: 03 March 2005 14:32
To: CF-Newbie
Subject: change font color based on content


Here's a fun one. I have written a little app that lists the status info on
4 different printers in our building. It reads the data from a database and
displays it on a status webpage.

What I would like to do is if the status field reads "OFFLINE" display it in
a red font.
If the status field reads "ONLINE" display it in green font. I haven't a
clue on how to do it.

Anyone??
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.6.0 - Release Date: 02/03/2005






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:717
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to