The best way I know to do this is to use request scoped variables. <!---Set request scoped variable - in custom tag, or wherever---> <cfset request.myVar = "1000">
<!---Get variable value---> <cfoutput>#request.myVar#</cfoutput> Whenever you set a request scoped variable, you are able to call that variable in every subsequent module or include following it, throughout a single HTTP request. Kind of think of it as a "super" variation of the normal "variable" scope. It's all over my code. Mike Michael B. Dorr eLab Web Application Developer Owen @ Vanderbilt University [EMAIL PROTECTED] -----Original Message----- From: Dave Carabetta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:38 AM To: CF-Talk Subject: Call a variable in a Custom Tag? 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. ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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

