How about looking back at the previous day to see if it's changed.

<cfif CurrentRow NEQ 1 AND Day(query["date"][CurrentRow]) NEQ
Day(query["date"][CurrentRow - 1])>
        Change colour
</cfif>

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: 28 March 2005 23:10
To: CF-Talk
Subject: Re: Alternating Row Colour - Sorta


> <cfoutput query="query">
>       <cfif query.CurrentRow MOD 2>
>               one colour
>       <cfelse>
>               another colour
>       </cfif>
> </cfoutput>


Nope, that's not it.

Let's say the Calendar is showing a number of events:

Mon - event 1
Mon - event 2
Mon - event 3
Tue - event 1
Tue - event 2
Tue - event 3
Tue - event 4
Thu - event 1
Thu - event 2
Thu - event 3
Thu - event 4

All the Monday and Thursday events need to be one colour. Tuesdays another.

--
-----------
Les Mizzell



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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

Reply via email to