Yes, you can do this:

<cfscript>

function foo() {
        return true;
}

request.foo = foo;

</cfscript>

Then inside the custom tag you can say:

<cfset result = request.foo()>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, November 26, 2001 2:30 PM
> To: CF-Talk
> Subject: Global User-Defined Functions
> 
> 
> Is there a way to access a user-defined function throughout a 
> request (e.g.
> from within custom tags or templates invoked with the CFMODULE tag)?
> 
> Benjamin S. Rogers
> http://www.c4.net/
> v.508.240.0051
> f.508.240.0057
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to