In answer to the original question -- if you are calling methods of the same
CFC you can call them as local variables.  So, you can do things like:


<cfcomponent>
<cffunction name="getStuff">
        <cfreturn "stuff">
</cffunction>

<cffunction name="getFoo">
        <cfset myStuff = getStuff()>
</cffunction>
</cfcomponent>

You can also use CFINVOKE, but you don't need the COMPONENT attribute if
calling a method of the same CFC.



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Nando
> Sent: Wednesday, October 15, 2003 5:05 AM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] Calling another CFC from within a method
>
>
> I'm working on my first DAO object and was wondering if there is a
> recommended practice for calling another cfc from within a method of an
> object, along the lines of using cfinvoke or CreateObject or ...
>
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to