> Right now using these functions I am getting unwanted
> duplicate nested structs and arrays.

Make sure you var all variables you use in functions, *especially* when
you're using recursive calls, otherwise each time you change or
reinitialise one of the variables it will be a *global* change, not
local to the function.

For example, the following:

<cffunction name="sanitiseFlashArray" ...>
  ...
  <cfset newArr = Arraynew(1)>
  <cfloop index="i" from="1" to="#Arraylen(flashArr)#">
  ...
</cffunction>

becomes...

<cffunction name="sanitiseFlashArray" ...>
  ...
  <cfset var newArr = Arraynew(1)>
  <cfset var i = 0>
  ...
  <cfloop index="i" from="1" to="#Arraylen(flashArr)#">
  ...
</cffunction>

HTH,

Tim.

 
--
-------------------------------------------------------
Badpen Tech - CF and web-tech: http://tech.badpen.com/
-------------------------------------------------------
    RAWNET LTD - independent digital media agency
    "We are big, we are funny and we are clever!"
     New site launched at http://www.rawnet.com/
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219320
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

Reply via email to