Use the variable name as an attribute within the custom tag call, then set that (dynamic) variable to the caller scope in the tag.
<cf_myTag att1="blah1" att2="blah2" var="myVar"><!--- tag sets caller.myVar, for later use ---> <cfoutput>#myVar#</cfoutput> Jamie On Tue, 11 Jun 2002 10:38:21 -0400, in cf-talk you wrote: >I know that, within a custom tag, I can set/update a variables on the >calling page using the "caller" scope. However, is there a way to do the >opposite? On the calling page, I'd like to "reach in" to the custom tag and >pull out a variable that gets set. > >The reason why I'd like to do it this was is that it seems that my custom >tag would be a bit more "modular" in that if the tag is called from another >application using a different variable name, I'm not dependant on the >variable name I've used in the custom tag. > >Thanks, >Dave. > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

