On Sat, Jul 5, 2008 at 7:02 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Tip of the Day...
>
> When using multiple values with CFCASE, e.g.,
>
> <cfcase value = "1,2,3">
>
> don't put a space after the comma in the value list.
>
> This works:  <cfcase value = "red,blue,green">
>
> This doesn't:  <cfcase value = "red, blue, green">
>
> This drove me crazy all day!
>
> Maybe this will save someone's sanity... (too late for you, Will :oP  )

that'd be the case with all list functions in CF.  anything between
the delimiter (including leading/trailing spaces) is going to be part
of the list element.  and yes, it's bitten me square in the ass before
:)


-- 
A byte walks into a bar and orders a pint. Bartender asks him "What's
wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I
thought you looked a bit off."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308630
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to