?
Solved

Delete an item from List

Posted on 2003-12-11
2
Medium Priority
?
195 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 2000 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 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