so how about...

can I make the functionality a cffuntion inside my cfcomponent
and call one cffuntion from within another?

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 2:51 PM
To: CF-Talk
Subject: Re: .cfc's and application.cfm file


Errr... I didn't think CFC's were supposed to inherit UDF's... except
from other CFC's... 

You can however attach the existing UDF to the CFC like this afaik:

<cfset this.methodname = evaluate("udfname")>

Although you may need to store the UDF in another scope first, so more
like: 

<cffunction name="myudf">...</cffunction>
<cfset request.myudf = evaluate("myudf")>

... 

<cfset this.methodname = request["myudf"]> 

hth

Isaac 


------ Original Message ------ 
From: Tony Weeg <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Aug 20, 2003 01:26 PM
Subject: Re: .cfc's and application.cfm file

>if I have a udf in my application.cfm file, why doesn't a cfc in the 
>same dir inherit the udf function from it?
>
>thanks!
>
>tony weeg
>uncertified advanced cold fusion developer
>tony at navtrak dot net
>www.navtrak.net
>office 410.548.2337
>fax 410.860.2337
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to