Not sure about your reasons, but you can do:

<cfsavecontent variable="myText">
        <cfinclude...>
</cfsavecontent>

Adrian

-----Original Message-----
From: Daniel Kessler [mailto:[EMAIL PROTECTED]
Sent: 05 September 2006 15:43
To: CF-Talk
Subject: including into a cfset


okay, I'm sure this is cause I'm just not thinking right this  
morning, but I've stared and stared and just don't see the answer.

I have a bit of text that I want to represent in alot of places  
("epidemiology and biostatistics") and wish to do:
<cfinclude template='department_name.cfm'>   which is just  
"epidemiology and biostatistics"

I also have a variable this is used in alot of places that I also  
need to set to this text:
<cfset page_location = "epidemiology and biostatistics">

It would be nice if I could set page_location to the cfinclude, but  
not only does it not work, it looks silly:
<cfset page_location = <cfinclude template='department_name.cfm'>>

How would I do this ?
page_location is used in other modules not owned by this, so I need  
to keep that variable and just set it to the included information.

thanks.


-- 

Daniel Kessler

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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