UDFs defined in a page exist in the Variables(local) scope. So, for a custom
tag to use the function, you must use Caller.UDFName, just as if you were
trying to access a simple variable.
If you want, you can copy a UDF to the request scope.
> I just started playing around with the UserDefined-functions in CF5 and
> found a strange issue making it nearly impossible to
> get any value of it.
>
> For example when defining "global"-functions in the application.cfm there
> seems to be no way to use these in a "sub"-called customtag.
> Is there a possiblity to reference the function created on top within the
> customtag without defining it new?
>
> Or simply, is there a way to make the functions available in the
> request-(scope)?
>
>
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists