To write back, you use the Caller scope.

<cfset caller.result = x>

The preferred method is to make the result key dynamic. That way you
don't accidentally overwrite stuff in the caller. So for example:

<cf_mytag x=1 y=2 result="result">
<cfoutput>The result was #result#</cfoutput>

Inside the CFC you can do:

<cfparam name="attributes.result" default="result" type="variableName">

(lots of logic here)

<cfset caller[attributes.result] = result>

Once done you can then do:

<cf_mytag result="resultA">
<cf_mytag result="resultB">
etc



On 7/24/06, James Smith <[EMAIL PROTECTED]> wrote:
> Just written a quick custom tag and can't remember how to get info out of
> them (been a while).
>
> The tag is called with the <cf_customtag attrib="someVal"> method and it
> builds a large structure that I then don't have access to back in the main
> template.
>
> Could someone remind me?
>
> --
> Jay
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.3/395 - Release Date: 21/07/2006
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/cf_lists/message.cfm/forumid:4/messageid:247479
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to