Solved

Delete an item from List

Posted on 2003-12-11
2
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
CFDevHead earned 500 total points
ID: 9922199
<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
ID: 9924787
hey thanks man.. much appreciated..
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
What You Need to Know when Searching for a Webhost Provider
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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