thisNL is a query object, you can't cfset its' values... which is why the
latter works and the former doesn't.

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 08, 2008 10:16 AM
To: CF-Talk
Subject: Re: Setting a default value and dynamically checking a radio button

> If I do <cfoutput>#thisNL.alignHEAD#</cfoutput> - these nothing there, , 
> so I'm not sure why the below won't set the varialbe to "rgt" in this
case.
> 
> <cfif NOT len(trim(thisNL.alignHEAD))>
>      <cfset thisNL.alignHEAD ="rgt" />
> </cfif>


This works:

<cfif thisNL.recordcount EQ 0 >
   <cfset thisNL.alignHEAD ="rgt" />
</cfif>



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307050
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