Another option is to make the return variable dynamic. I talked about
this at my presentation at MAX. Typically I build my custom tags so
that the result variable is dynamic, with a default:

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

This lets me then call my tag like so, <cf_foo result="theResult">

You can set a dynamic variable back a few ways, here is one:

<cfset caller[attributes.result] = whatever>


On Tue, 9 Nov 2004 15:20:51 -0000, Paul Vernon
<[EMAIL PROTECTED]> wrote:
> If you are using a module then set the caller.yourvar value as the result...
> 
> <cfset caller.myrecordcount = myquery.recordcount>
> 
> Paul
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183733
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to