> Is there a way to attach a method/function to cf variable, > be it a string, array, structure, etc at runtime? I don't > think this is possible now, but it just popped into my head, > and before I headed to the wishform, I was wondering if it, > or a creative workaround already existed.
You can attach a user-defined function to a structure or to a CFC. I doubt that you can with other variables - when you use dot notation, CF by default assumes you're creating a structure, so I suspect that it would overwrite your existing array or whatever. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

