Patrick,

You can place the function inside the request scope:

<CFSET Request.FunctionName = FunctionName>
(no parentheses on the function name, since it's a key in the Variables
scope)
<CFSET Foo = Request.FunctionName(arguments)>

Or, you can use the Caller scope as well:

<CFSET Foo = Caller.FunctionName(arguments)>

Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/



----- Original Message -----
From: "Wagner Patrick" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 11, 2001 11:25 AM
Subject: Define and Call UD-Functions


> Hi there!
>
> 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)?
>
>
> Best Regards
>
> Patrick Wagner
> Application Engineer
> conceptware ag
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to