How To Create A Collection Class.......

S

Supra

I stll have same problem...
in vb6
Public Property Get NewChannel () as Collection
Set NewChannel = varNewChannel
End Property

Public Property Let NewChannel(byval var as Object)
varNewChannel = var
End Propewrty

in vb.net
Public Property NewChannel() As Collection
Get
NewChannel = m_NewChannel
End Get
Set(ByVal Value As Object) =====> Set parameter must have
same type as containing property

End Set
End Property
 
C

Cor Ligthert

Supra,

Why not describing what you want, the visualbasic collection class is a
confusing thing.

You have a lot of better solutions, however tell than what you want.

What has to be hold in the collection and does it use a key.


A collection is a class itself so what you want is probably use it and
probably you do not even need that.

Maybe is a hashtable or another Net array of collection much better.

Cor
 
S

Supra

read my posted below >:blush:

Cor said:
Supra,

Why not describing what you want, the visualbasic collection class is a
confusing thing.

You have a lot of better solutions, however tell than what you want.

What has to be hold in the collection and does it use a key.


A collection is a class itself so what you want is probably use it and
probably you do not even need that.

Maybe is a hashtable or another Net array of collection much better.

Cor


"Supra" <[email protected]>
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top