Collections of Collections..how? 
Author Message
 Collections of Collections..how?

I want to create a collection of collections, such as, First I have say a
IPs, a collection of, and to each IP  Id like to add thier Port and
ServiceName, might be 1 Port/ServiceNmae, and might be 20 of them to this
IP, hence another collection. How would I set this up using classes and
collections. Ideas/examples anyone?


Mon, 08 Jul 2002 03:00:00 GMT  
 Collections of Collections..how?
3 classes: colIP, clsIp, clsPort.

clsPort has properties that define a port, or service.

clsIP has properties that identify an IP, and a collection of clsPort's
that identify the services provided.

colIp is a collection class containing the various IP's.

How to make a class hold a collection of other classes is (I believe)
included in the Programmers Guide for VB.

LFS

Quote:

> I want to create a collection of collections, such as, First I have say a
> IPs, a collection of, and to each IP  Id like to add thier Port and
> ServiceName, might be 1 Port/ServiceNmae, and might be 20 of them to this
> IP, hence another collection. How would I set this up using classes and
> collections. Ideas/examples anyone?



Mon, 08 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. using collection of collections

2. collection in collection

3. Collection of Collections?

4. collections of collections

5. Collection of Collections

6. Collection of collections

7. Collection of Collections of Classes

8. VB4 class collections with collections

9. An ARRAY of a Collection of Collections !!??

10. Please!! help on COLLECTION of COLLECTIONS

11. collection into collection

12. User defined Collections within Collections

 

 
Powered by phpBB® Forum Software