YOu could say:
<cffunction name="isC">
<cfset result = isA()>
<cfif result>
...Do something...
</cfif>
</cffunction>
Douglas
-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2003 10:53
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] CFC's
If I have a CFC with 4 methods, but one of the methods needs to call another
method how do I do it?
CFC (cut down for simplicity):
<cfcomponent>
<cffunction name="isA">
... Do something ...
<cfreturn true>
</cffunction>
<cffunction name="isB">
... Do something ...
<cfreturn true>
</cffunction>
<cffunction name="isC">
<cfif NOT isA>
<cfreturn false>
</cfif>
... Do something ...
<cfreturn true>
</cffunction>
<cffunction name="isD">
... Do something ...
<cfreturn true>
</cffunction>
</cfcomponent>
Paul
-------------------------------------------
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL PROTECTED]
+44 (0)7866 573013
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]