Check out attributeCollection, as long as you're on CF8.  It lets you
use a struct to supply attributes to tags.  Other than that, you can't
do it.

cheers,
barneyb

On Mon, Jun 9, 2008 at 4:05 PM, Brian Niski <[EMAIL PROTECTED]> wrote:
> 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
>


-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:307125
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