Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Delete List elements

Thread Tools

Delete List elements

Posts: n/a

I have a Generic.List(Of String) with 100 elements.
I want to sort it and delete the last 40 elements.
Can this be done without a loop?

And if not, can I convert it to an array and do it in the array?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
are elements of a list in sequence in list b Python 8 02-09-2008 07:58 PM
Appending a list's elements to another list using a list comprehension Debajit Adhikary Python 17 10-18-2007 06:45 PM
style question: how to delete all elements in a list Python 0 03-07-2006 03:25 AM
Removing elements in a list that are also in another list Adam Hartshorne C++ 7 01-27-2006 05:59 PM
Removing elements from a list that are elements in another list Adam Hartshorne C++ 2 01-27-2006 07:47 AM