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]

Reply via email to