Mark, is this the same idea that Taco floated (last week I think)? if so, lots of smart ideas there...
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12675.html starts the thread hope it helps cheers barry.b -----Original Message----- From: Mark Mandel [mailto:[EMAIL PROTECTED] Sent: Friday, 16 July 2004 12:19 PM To: CFAussie Mailing List Subject: [cfaussie] CFC Dynamic Method invocation 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/ --- 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/
