I am attempting to dynamically call a cfc's functions without resorting to evaluate, but something isn't working correctly. I have read in the archive that you can assign a function to a var, then call the var as a method but this doesn't appear to be working with setters in a cfc. Take the following code for example:
tempSetter = myComponent["setID"]; tempSetter(1); Although the function appears to complete without error, the value isn't retained in the myComponent cfc. It almost appears as if the dynamic function is executing in an entirely different scope. If I create another dynamic function call to retrieve the data, it appears to be there, but if I call the function directly, the data isn't there: tempGetter = myComponent["getID"]; writeoutput(tempGetter()); // displays "1" writeoutput(myComponent.getID()); //displays nothing Is there something I'm missing? TIA, Chris This email and its attachments may contain confidential information which is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action based on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender and delete this email from your computer. Thank you. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216078 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

