473,511 Members | 15,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Class SortedList find Items

Hi,
I have filled a sortedlist with items of instances of a class and the
corresponding keys
Now i will have back all the keys and the corresponding properties of the
items

dim keyitem as string
dim slist as new sortedlist
dim cl as new clss
cl.name = "Robert"
keyitem = "Ro"
slist.add(keyitem,cl)
cl.name = "Johan"
keyitem = "Jo"
slist.add(keyitem,cl)
....
....
how can i get all the values of the keys and the names ?
for each ... ?
or for i = 0 to slist.count-1 ....
Thanks for any response

Nov 20 '05 #1
0 967

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
482
by: herbert | last post by:
1) I created a class Person whose objects are stored in collections. Using IComparable allows to define one sort criteria like name. Best practice: How can I add more sort criterias like age, zip,...
3
4545
by: studen77 | last post by:
I'm not comprehending how C# assigns indexes to items you add to a SortedList item. Here's some example code: sl.Add ("first_item","First Item"); sl.Add ("second_item", "Second Item"); sl.Add...
2
3069
by: Pekka | last post by:
Could somebody say why the piece of code below does not work? My purpose is to renumber keys in a SortedList (after removal of an item) so that the keys would always contain an unbroken sequence of...
3
3538
by: David Scemama | last post by:
Hi, I need to store (key,Value) pairs, but I don't want them sorted. I need to access to the keys or values by index. I also need to access the indexes using keys or values. The only class...
2
1867
by: Georg | last post by:
Hi, I would like to use a SortedList collection to store numeric data items with a key (numeric location). When I have a key which is not stored in the SortedList and which should not be stored...
4
1533
by: sck10 | last post by:
Hello, I have a method in my codefile that builds a sorted list (see CodeFile). I am trying to create a class that does the same thing (see App_Code). CodeFile...
2
1322
by: active | last post by:
This is where a different thread ended. The subject of this query is quite different from that of the other thread so I thought I should start a new thread. I'm using Private mItemList As...
4
7986
by: zfareed | last post by:
#include <iostream> #include <fstream> using namespace std; template<class ItemType> class SortedList { private:
4
4306
by: Michael Nesslinger | last post by:
Hello, i am looking for an easy way to do a "RemoveAll(Predicate<Tmatch)" for a SortedList like it is possible for a List. My first question is: Why is the Method not available for the...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.