You mean you can't do:

<cfset request["arrayOfIds_#theIndex#"][1] = "foo"> ?

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Mark Kecko [mailto:mark@;mediapost.com] 
> Sent: Thursday, November 14, 2002 10:11 AM
> To: CF-Talk
> Subject: RE: Dynamic Arrays
> 
> 
> Creating the array isn't the problem, adding items to it is.  Am I
> misunderstanding your advice.  I changed my line that sets up 
> the array to
> bracket notation, still can't add to it.
> 
> _mark
> 
> -----Original Message-----
> From: Raymond Camden [mailto:jedimaster@;macromedia.com]
> Sent: Thursday, November 14, 2002 10:03 AM
> To: CF-Talk
> Subject: RE: Dynamic Arrays
> 
> 
> Why not simply use bracket notation?
> 
> <cfset request["arrayOfIds_#theIndex#"] = arraynew(1)>
> 
> ==============================================================
> =========
> Raymond Camden, ColdFusion Jedi Master for Hire
> 
> Email    : [EMAIL PROTECTED]
> WWW      : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda
> 
> > -----Original Message-----
> > From: Mark Kecko [mailto:mark@;mediapost.com]
> > Sent: Thursday, November 14, 2002 10:04 AM
> > To: CF-Talk
> > Subject: Dynamic Arrays
> >
> >
> > Can anybody tell me why this set to a dyanamically named
> > array won't work,
> > is there a workaround?  I've tried ArraySet with the same
> > results.  IsArray
> > and ArrayLen recognize it, but I can not Append or Insert 
> items.  Any
> > suggestions would be grand, thanks.
> >
> > <cfset tentativeId = 123>
> >
> > <cfloop list="a,b,c" index="theIndex">
> >     <cfoutput>
> >             <cfset "Request.arrayOfIds_#theIndex#" = ArrayNew(1)>
> >             <cfset temp =
> > ArrayAppend(Evaluate("Request.arrayOfIds_#theIndex#"),
> > tentativeId)>
> >             IsArray:
> > #IsArray(Evaluate("Request.arrayOfIds_#theIndex#"))#<br>
> >             temp: #temp#<br>
> >             ArrayLen:
> > #ArrayLen(Evaluate("Request.arrayOfIds_#theIndex#"))#<br><br>
> >     </cfoutput>
> > </cfloop>
> >
> > Mark Kecko
> > Technology
> > Mediapost Communications
> > [EMAIL PROTECTED]
> >
> >
> >
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Reply via email to