Yep! Thanks again

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 2:43 PM
To: CF-Talk
Subject: RE: Passing Arguments between Components

> 
> Specifying a component as an argument....are all methods 
> available within
> the component specifying this other component in the 
> arguments? Sounds like
> a funky reverse inheritance.
> 

Eh? I don't quite get you. If you pass a CFC to another CFC like so:

<cfset x = createObject("component","foo")>
<cfset y = createObject("component","cow)>

<cfset result = x.doIt(y)>

Then, yes, inside of the doIt method, you can have...

<cffunction name="doIt" ....>
        <cfargument name="ani" type="cow">
        <cfoutput>#ani.moo()#</cfoutput>
</cffunction>

Does that answer your question?

-ray


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to