Isn't this good enough:

BGCOLOR="#stColor[QueryName.CurrentRow MOD 2]#"

and if you are _in_ the query, you can do

BGCOLOR="#stColor[CurrentRow MOD 2]#"

Why do people like to use Evaluate around Structs so much? I see a lot of
people doint that. You shouldn't use Evaluate unless you _really_ have to.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 4:17 PM
> To: CF-Talk
> Subject: RE: Alternating BG colors on a <TD>
>
>
> That's pretty slick.
>
> -----Original Message-----
> From: Nate Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 3:17 PM
> To: CF-Talk
> Subject: RE: Alternating BG colors on a <TD>
>
>
> By using the mod function on queryname.CurrentRow.
>
> Create this struct to hold your two color values.
> <CFSCRIPT>
>       stColor = STRUCTNEW();
>       stColor[0] = '##FFFFFF';
>       stColor[1] = '##CCCCCC';
> </CFSCRIPT>
>
> Then place this code inside of each td:
> BGCOLOR="#EVALUATE("stColor[QueryName.CurrentRow MOD 2]")#"
>
> -


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to