To a CFC, it doesn't matter what order the methods are, method N can
call method M no matter what order they come in.

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

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

> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 20, 2003 1:02 PM
> To: CF-Talk
> Subject: RE: .cfc's and application.cfm file
> 
> 
> so is this the way it works....
> 
> 
> <cfcomponent>
> 
> <!--- some cfml functionality --->                    
> <cffunction></cffunction>
> 
> <!--- more cfml functionality...might need some info from the 
> above cffunction ---> <cfunction></cffunction>
> 
> </cfcomponent>
> 
> can I call out to the first cffunction in the second one, to 
> run the first one, to get some value and then use that value 
> 1 line down in the 2nd one?
> 
> am I making sense?
> 
> tony
>               
>                       
> 
> 
> 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