473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

Nov 21 '05 #1
2 1384
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" <su*****@rogers.com>
..
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

Nov 21 '05 #2
read my posted below >:o

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" <su*****@rogers.com>
.

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



Nov 21 '05 #3

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

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
2
by: Marcin Grzêbski | last post by:
Hi All, How to create *component* class which do now show its instance in a component bar? I want to create other class, this *component* instance collection and i know how to show that...
0
by: hazz | last post by:
i have an array (or collection if necessary) of Customers with CustomerID and several properties. For each of these Customers I will have a one to many relationship with Customer products....
7
by: Supra | last post by:
hi ken tucker, how will i do in vb.net? in vb6 i have no problem. i have rewritten in vb.net but i got white blank form. i am doing irc chat project similar mirc chat. in vb6 class module (not...
1
by: Russell Mangel | last post by:
Sorry about the Cross-Post, I posted my question in the wrong group. Hello, What is the simplest way to create a dynamic collection (during run-time), using basic C (Struct data types). Since...
19
by: Brett Romero | last post by:
Here's a table of data I'm putting into a collection: CodeId CodeGroup CodeSubGroup Type 1 K K.1 Shar1 2 K ...
1
by: Øyvind Isaksen | last post by:
I try to make my own ArticleAttribute object and ArticleAttributeCollection, and add data to this Collection. It almost works, but the problem is that each time I add an ArticleAttribute to my...
9
by: Peri | last post by:
Dear All, I have written a common array class which has insert, search and other functions. For Example (Code in VB.NET): ' Client Class Public Class Client Public ClientCode As String ...
1
by: shapper | last post by:
Hello, I have the following code:     MySection sect = System.Configuration.ConfigurationManager.GetSection(Name) as MySection;     foreach (Person p in sect.People) {        ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.