Solved

Delete an item from List

Posted on 2003-12-11
2
188 Views
Last Modified: 2013-12-24
Hi experts:

how do i find an item in the list and delete it?

the list itself is generated by a query and might have different number of elements..

for eg:

i have a list (1,2,3,4,5,6,7)

say i want to find 3 and delete it...

as i said, the list generated is different everytime.. it may not necessarily have 7 elements.. sometimes more or less.. pls help
0
Comment
Question by:adonis1976
2 Comments
 
LVL 9

Accepted Solution

by:
CFDevHead earned 500 total points
Comment Utility
<cfset mylist="1,2,3,4,5,6,7"/>

<cfset mylist=listdeleteat(mylist,listfindnocase(mylist,'3'))/>
<cfoutput>#mylist#</cfoutput>
0
 
LVL 11

Author Comment

by:adonis1976
Comment Utility
hey thanks man.. much appreciated..
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now