Pascal
> -----Original Message-----
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: woensdag 2 juni 2004 18:56
> To: CF-Talk
> Subject: RE: Error on Array
>
> Thanks Peter and others.
>
> How do I delete the entire ID?
>
> Here is my Array which I should have sent also sorry:
> <cfset session.item[variables.arrayLength+1][1]=form.qty>
> <cfset session.item[variables.arrayLength+1][2]=form.item>
> <cfset session.item[variables.arrayLength+1][3]=form.priceeach>
>
> I think <cfset tmp = ArrayDeleteAt(session.item,1)> just
> deletes the first item??
>
> Robert O.
>
> -----Original Message-----
> From: Pascal Peters [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 02, 2004 11:12 AM
> To: CF-Talk
> Subject: RE: Error on Array
>
>
> Because ArrayDeleteAt doesn't return an array but a boolean!
> If you run the code twice, the array has disappeared.
>
> Just do
> <cfset tmp = ArrayDeleteAt(session.item,1)>
>
> > -----Original Message-----
> > From: Robert Orlini [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 2 juni 2004 16:52
> > To: CF-Talk
> > Subject: Error on Array
> >
> > Why am I getting this error? What does it mean please?
> >
> > An error occurred while evaluating the _expression_:
> > session.item=#ArrayDeleteAt(session.item,1)#
> > Parameter 1 of function ArrayDeleteAt which is now "YES" must be an
> > array. The error occurred while processing an element with
> a general
> > identifier of (CFSET),
> >
> > I want to delete a row in the Array and am using this code
> after user
> > clicks the "remove" button:
> >
> > <CFIF IsDefined("form.remove.x")>
> > <CFSET session.item=#ArrayDeleteAt(session.item,1)#>
> > </cfif>
> >
> > Roberto O.
> >
> >
> >
> _____
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

