You are close but are missing a few basics there... Check out
http://www.protonarts.com/0176120040217.pdf....

On Thu, Apr 5, 2012 at 8:16 PM, Marcia Fitzmaurice
<mar...@fitzwebdesigns.com> wrote:
>
> I have created a 2D array. When I delete an "row" the elements disappear but 
> not the "row" itself which is causing problems. See the example below where 
> "Row" 5 does not have any elements and is labeled "empty".
>
> array
> 1 array
> 1 90
> 2 GOLDE
>
> 2 array
> 1 186
> 2 natural
>
> 3 array
> 1 302
> 2 Winchester
>
> 4 array
> 1 301
> 2 natural
>
> 5 array [empty]
>
>
> Here is the code I am using. It deletes the elements in in the "row" but not 
> the "row" itself. Any help is greatly appreciated:
>
> <cfoutput>
> <CFPARAM NAME="DeleteRow" DEFAULT="">
>
> <CFPARAM NAME="ID" DEFAULT="URL.ID">
>
>  <CFLOOP INDEX = "OuterCounter" FROM= "1" TO 
> ="#ArrayLen(Session.samplecart)#">
> <CFIF Session.samplecart[OuterCounter][1] EQ #id#>
>
> <CFSET DeleteRow = #OuterCounter#>
>
> #ArrayDeleteAt(Session.samplecart,DeleteRow)#
>
> </CFIF>
> </CFLOOP>
>
> </cfoutput>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350657
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to