I would like to define a variable and use this variable in a CF tag that is 
equal to both the tag attribute and its value.  Is there a technique to 
properly do this, or is this not allowed?  Can anyone help or point me to a 
reference that discusses this?  Here is an example of what I am attempting:

<cfif condition1>
  <CFSET max_results = "maxrows=5">
<cfelse>
  <CFSET max_results = "">
</cfif>

<cfquery name="NewsQ" datasource="#DSN#" #max_results#>
  SELECT * FROM TABLE
</cfquery>

Thanks.
Brian 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:307123
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to