Re: [cfaussie] CreateObject of itself

2011-07-13 Thread Phil Haeusler
Hi Steve If you're just trying to avoid referencing the component name within itself, then why not try using local.metaData = GetMetaData(this); local.tmpObj = CreateObject(component, local.metaData.fullname).init(); You might want to check the docs to see if fullname is the correct key to

Re: [cfaussie] CreateObject of itself

2011-07-13 Thread Dennis Clark
Duplicate works on CFC instances, so Duplicate(this) would work. Of course it also duplicates the state of the instances variables in 'this', so it might not be what you want. Otherwise, try CreateObject(component,GetMetaData(this).name) or maybe

RE: [cfaussie] CreateObject of itself

2011-07-13 Thread Steve Onnis
An you do something like new init() ? From: Dennis Clark [mailto:boomf...@gmail.com] Sent: Wednesday, 13 July 2011 8:58 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] CreateObject of itself Duplicate works on CFC instances, so Duplicate(this) would work. Of course it also