PC Review


Reply
Thread Tools Rate Thread

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

 
 
Supra
Guest
Posts: n/a
 
      22nd Nov 2004
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

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      22nd Nov 2004
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" <(E-Mail Removed)>
..
>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
>



 
Reply With Quote
 
Supra
Guest
Posts: n/a
 
      22nd Nov 2004
read my posted below >

Cor Ligthert wrote:

>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" <(E-Mail Removed)>
>.
>
>
>>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
>>
>>
>>

>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to create a type-safe, collection class that supports For Each...Next? Andrew J. Marshall Microsoft VB .NET 4 1 Week Ago 09:57 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft ASP .NET 1 18th May 2007 10:24 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
this is for ken tucker: How To Create A Collection Class with VB.NET Supra Microsoft VB .NET 7 23rd Nov 2004 02:10 PM
How To Create A Collection Class with VB.NET Supra Microsoft VB .NET 2 22nd Nov 2004 03:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 AM.