Hmm. I just tested this on cf5 and it worked fine. I used <cfset a = structNew()> <cfset a.qwer = "tyui"> <cfset a.asdf = "ghjk"> <cfset a.zxcv = "bnm,"> <cf_teststructcustomtag content="#a#">
where teststructcustomtag.cfm is <cfparam name="attributes.content" type="struct"> <cfset content = attributes.content> <cfdump var="#attributes.content#"> <cfdump var="#content#"> Can we see more of your code? > -----Original Message----- > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] > Sent: Monday, 23 September 2002 10:44 a.m. > To: CF-Talk > Subject: structure bug ? > > > I have a custom tag which contains the following code: > > <cfparam name="attributes.content" type="struct"> > <cfset content = attributes.content> > > after which point, attributes.content is a valid structure > with several keys > and values, however the local variable content is an empty string ... > > <cfdump var="#attributes.content#"> displays the structure > <cfdump var="#content#"> displays nothing > > I've also tried using duplicate() structcopy() and structappend() > as well as manually creating a new structure and copying all > the data from > attributes.content into it with: > > <cfset content = structnew()> > <cfloop item="x" collection="#attributes.content#"> > <cfset content[x] = evaluate("attributes.content.#x#")></cfloop> > > I've tried array notation with this loop also ... > > None of these tactics have worked to copy the keys and values shown in > <cfdump var="#attributes.content#"> into the local variable... > > So... It's obviously not creating a pointer as it should with > <cfset content > = attributes.content> ... As for the rest of these, I'm > completely clueless > as to what the problem might be... If nothing else, > duplicate() is supposed > to create a deep copy of the complex object, so it's supposed > to return all > the keys and values regardless, but it's not doing that, so > ... this leads > me to think it's a bug in the server... > > Anybody have any ideas? > > ColdFuion 5 on Win2K Server > > Isaac Dealey > Certified Advanced ColdFusion 5 Developer > > new epoch > www.turnkey.to > 954-776-0046 > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

