><cfset person1=structnew()> ><cfset person2=person1> ><cfset person2.name="ken"> > ><cfoutput>#person1.name#</cfoutput> > >this would yield "ken" in cf5, but in cfmx, you get an error on line 2 >saying "Complex object types cannot be converted to simple values." > > >so are there no pointers in cfmx?? any other way i'm not aware of to cut >down on long complex object references?
This doesn't have do to with pointers. In CFMX, any variables with a "." in it are automatically converted into structures. So, in your example, person2.name is now a structure with a key of name and a value of "ken", not a simple value. Hence your error. This feature is documented in several places in the documentation, but I don't have the link handy. Check out the Migration Apps documents at livedocs.macromedia.com for more information. Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

