Hey all,
Trying to dynamically call a method on a CFC, and tries to do it like this:
<!--- dynamically fire method --->
<cfscript>
func = item[attributes.label];
label = func();
</cfscript>
However, the method being fired is interacting with instance data, so I get a
'cannot find variable 'Name' is struct 'instance'' as my error :oP
If I want to dynamically call methods on a CFC that interact with
instance data - do I have to do something like:
<!--- dynamically fire method --->
<cfscript>
item.newFunctionName = item[attributes.label];
label = item.newFunctionName();
StructDelete(item, "newFunctionName");
</cfscript>
Or is there a better way?
Mark
--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/