<cfset a = arrayNew(1) />
<cfloop list="#myList#" index="I">
  <cfif len(trim(i)) GT 0>
    <cfset arrayAppend(a, i) />
  </cfif>
</cfloop>
<cfset myList = listToArray(a) />

That's untested, but should work.

Cheers,
barneyb

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 10:59 AM
> To: CF-Talk
> Subject: listfunction problems
>
> Hi folks, I have a list
> like: a, b, d, , f, g, , , , s
> But I would like to have:
> a, b, d, f, g, s
>
> How can I get rid of the empty
> elements in the list ?
>
> Uwe
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to