<cfloop from="1" to="#listlen(ListB)#" index="i">
<cfset variables.x = listgetat('ListB', '#i#')>
<CFIF listfind('ListA', '#variables.x#') NEQ "0">
ListDeleteAt
wooops. gotta go to an urgent meeting. Sorry hope this gets you started.
</cfif>
</cfloop>
Eric
[EMAIL PROTECTED] writes:
>Is there an easy way to take the elements of one list and remove them from
>another list? i.e. Subtract ListB from ListA to get ListC
>
>ListA = (1,2,3,4,5,6)
>ListB = (2,4,6)
>
>I want returned ListC = (1,3,5)
>
>Thanks!
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Simon Park Computer Systems Management, Inc.
>[EMAIL PROTECTED] 205 South Whiting Street
>Ph: 703-823-4300 Suite 201
>fax: 703-823-4301 Alexandria, VA 22304
> http://www.csmi.com
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
>or send a message to [EMAIL PROTECTED] with 'unsubscribe'
>in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.