Is this a quiz?  Below is my very rudimentary example of parameter passing
to an already created object - the values passed to a method of the CFC.
<cfinvoke> seems to me like it's meant for using the CFC simply as a UDF
container.  This actually does the same thing, a query run within the
object.  It's not OO, but I can initiate another query by calling the same
method with new values and not need to create another object.

I'm just now beginning to understand this stuff, you'll probably get some
more enlightened responses today - hope so, it'll help me too!

Kelly
--------------------------------------------------
<cfobject name="status_obj" component="mydata" />
<cfset variable.text = status_obj.greeting() />
<cfset status="CANCEL" />
<cfset cancel_type="NP" />
        
<!--- This is the second easiest way to pass the params, but most explicit
--->
        <cfset status_text = status_obj.GetStatusText(CodeID="#status#",
CodeName="#cancel_type#") />
                
<!--- Easiest - if you pass the same number of arguments as the method
expects AND in the order they're introduced in the method you could bypass
the argument names --->
        <cfset variable.text = status_obj.GetStatusText(status,
cancel_type)>


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Chris Gomez
Sent: Wednesday, February 09, 2005 8:31 AM
To: [email protected]
Subject: CFC question


At last nights meeting, it was brought up that CFC's should not be
called using the CFINVOKE command. If that's the case, then how would
you call a CFC and, more importantly, how do you call a CFC that
requires arguments be passed to it?

Thanks,

Chris
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


-----------------------------------------
CONFIDENTIALITY NOTICE: The information contained in this e-mail and
attached document(s) may contain confidential information that is intended
only for the addressee(s). If you are not the intended recipient, you are
hereby advised that any disclosure, copying, distribution or the taking of
any action in reliance upon the information is prohibited.  If you have
received this e-mail in error, please immediately notify the sender and
delete it from your system.

----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to