Why do you say that?
On 5/13/07, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > Talk about wasting time... > > -----Original Message----- > From: Andrew Scott [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 12, 2007 6:49 PM > To: CF-Talk > Subject: Re: Anyone know why this set Array in a struct fails? > > Well that goes to show you a thing or two then... > > Params is the array that was returned that needs to be stored into the > Struct.Parameters which is an array... > > *LOL* > > > On 5/13/07, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > > > .... but since you think it is. > > > > <cfset ArrayAppend(params,tempStruct["parameters"]) /> > > > > ArrayAppend(ARRAY, VALUE) not ArrayAppend(VALUE, ARRAY) > > > > -----Original Message----- > > From: Andrew Scott [mailto:[EMAIL PROTECTED] > > Sent: Saturday, May 12, 2007 5:53 PM > > To: CF-Talk > > Subject: Anyone know why this set Array in a struct fails? > > > > I am trying to set an array to a struct and seem to be having a blonde > > moment on this one. > > > > > > <cfloop from="1" to="#ArrayLen(NodeArray)#" index="Count"> > > <cfset tempStruct = StructNew() /> > > <!--- Returns Struct of Attributes from node ---> > > <cfset tempStruct = getAttributes(NodeArray[Count]) /> > > <!--- Returns an Array of parameters for node ---> > > <cfset params = getParameters(NodeArray[Count]) /> > > <cfif ArrayLen(params)> > > <!--- This is the line that fails ---> > > <cfset ArrayAppend(tempStruct["parameters"],params) /> > > <!--- <cfset tempStruct["parameters"] = params ---> > > </cfif> > > <cfset ArrayAppend(methods, tempStruct)> > > </cfloop> > > Anyone have any ideas, why my brain just can't figure this out? > > > > -- > > > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277947 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

