Can anyone suggest a way i can create a new reference to a cfc that i am
already in?
Something like....
FooBar.cfc
<cfcomponent>
<cfproperty name="fooProp" type="string" />
<cffunction name="bar" output="false">
<cfscript>
LOCAL.tmpArr = [];
for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) {
LOCAL.tmpObj = new this;
LOCAL.tmpObj.setfooBar("Some String #LOCAL.i#");
ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj);
}
</cfscript>
</cffunction>
</cfcomponent>
Obviously "new this;" wont work.
I want something to replace
LOCAL.tmpObj = createObject("COMPONENT", "FooBar");
Ideas?
Steve
--
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.