|
Mailing Lists
|
Home / Groups / ColdFusion Talk (CF-Talk)
cfscript and methods>When creating an instance of an object (component) within cfscript how >would I call a method of that object using arguments[ie: >myobject.init(ID);]? It's pretty straight forward using cfinvoke, but >I'm not finding much documentation on component manipulation with >cfscript... > <cfscript> Variables.myObject = createObject("component", "path.to.my.CFC"); Variables.myObject.init( customerID:ID, secondArgument:Value2 ); </cfscript> I believe you can also use "=" as your separator (customerID=ID), but the ":" is just what I've gotten used to. Regards, Dave. |
May 19, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||