Solved

Delete an item from List

Posted on 2003-12-11
2
189 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

15 Experts available now in Live!

Get 1:1 Help Now