o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Collections, classes and New() -

I have a "master" collection and a temporary collection, each is based on a class that I defined. The "master" collection exists as a private form variable. The temporary collection exists in a sub on that form.

In the sub I set my temporary collection equal to the "master" collection. I then clear the temporary collection, but it also clears my "master" collection. WHY!?!?

Does setting one collection = another collection make them have the same location in memory??? Any help, advice or anything else is appreciated.

 

A matter of Class -
Hi, If I have a class, which is a collection wrapper, and it has classes within it, which are also collections of classes. So it's essentially a collection of collections. My point is: Can I just clear the master collection, without looping through and clearing all it's child


Defining Collections and how to use them -
ok, I have learned user-defined types and I am familiar with arrays of data and controls. I am trying to learn classes, but I feel that I should learn about collections first. I'm trying to understand the entire concept of collections. How to create them and how to use them. MSD


Example for Collection Class -
Hi Everybody, I'have just dived into world of COM, having some queries, which are mind boggling - Would appreciate if some of you can put some light on it with some real life examples,,, (i mean real life,, no dumy) 1. I'm unable to understand the meaning of Instancing Propert


[2005] ArrayList and Classes -
Hi - I saw some threads about Arrays containing Arrays, but I had trouble relating them to my situation. If this has already been addressed, please just link me to the previous thread. I have two classes: Department, which inherits Collections.CollectionBase so as to be able to co


Iterating multiple collections -
How can i iterate through 2 collections at the same time? Could i do it with just one iterator? Both collections are the same size. p.s. Can you use example code if possible? Thanks.


Database structure question -
Hello, I have this little problem. I'm developing a wrapper for a database that exposes the database structure with classes and collections. Well, it would be more correct that I need to create a database structure from the collections/classes struct. The problem is that I don


Hashtable Or Collections [Resolved...] -
I am writing a function which retrieves the unique ID and the message from the Queue. For this what can be the return type of my function? Can it be Hashtable or Collections? Here the order is very Important. So can I use Hashtable? (Key will be unique ID and Vaule will be the m


Using collections....please help! -
Can anyone explain how to use collections (i.e. control collections). Please give examples.


Couple of Class Questions (Collections, Error Handling) -
Hi all, I'm still working my way through classes and as much OOP as I can. This is a small app. I'm keeping everything in one project with several classes. The layers I have right now are UI - Business (I guess) - Database The business handles the data it gets from the da


organizing project classes into a hierarchy -
Is there a way to build a hierarchy, so some primitive classes within a project don't have visibility to the more complex classes? I have a project that has about 50+ classes. Some classes are primitive. Some classes build on other classes. They all seem to me in a global user space


are classes always needed in your programs -
Hello I have just started learning how write classes in vb.net. I never used classes when l used vb6. My question is, is it always important to write classes in your vb applications. I wrote classes when l programmed in C++, but not sure if it is essential to write classes in VB.Net


Simpleton needs array[] lessons -
Can anyone point me in the direction of a decent tutorial about Managed C++ arrays please? I have several managed ( __gc ) classes and I would like to declare an array of pointers to them. The use of __gc* and __gc[] syntax in Managed C++ is a complete mystery to me. Has anyone


collections!!!! -
i dont understand collections in vb. please help. where can i get info regardding collections? can anyone send me some file which has simple collection. i want to create a class in a collection and add items. how do i do it? please help


Books/Info on Collections -
Does anyone know where to find a lot of info on Collections or if there is a book that covers collections well?? I think that this could really help my program, but I want to understand how things work a little bit better first.


Classes, collections and typedef -
Hello All, All of a sudden after not using VB/Programming for a long while I am confused between a class and a collection and type def. I have an parent object called Human and child objects called, 1.Man, 2.Woman, 3.Baby, 4.Oldman and 5.Oldlady. they all have common features 1.E


Serializing Collections with Additional Properties -
I just recently started playing with XML and the XML Serializer class. However, when serializing certain classes I encountered some strange results. If I create a strongly typed collection and serialize it, it works perfectly fine, no problems there, the problem arises when I want t


componentsclasses -
whates the differenct between components and collections? as far as i know we create objects out of both of them. component can be added to the control bar, classes cant , is that the only difference? thanks ...


simple class question -
Are collections more efficient than classes with repect to program execution speed? If so, is the difference significant? Thanks


Adding responsibility to classes -
Im currently working on a small program which has 8 or so classes in it's business logic, as well as a few collection classes. This app has to work via webservices so all classes need to be serializable. I also need to add support for manual serialization to xmlfile! Now my biggest


Ploting and Clearing a Circle (Collections) -
Alright, I know I asked about collections before, but I am still confused about them. I am trying to plot a circle using collections, and then, remove just that same circle. I'm sorry if it's vague.


Filter classes in collections -
Hi everyone I am new to vb, and I am trying to create a DVD organizer, where I can organize my dvds and know when and to who I lend them. I am working with access and loading my two tables, DVDs & Friends to two collections: friendCollection and dvdCollection. my problem i


Returning readonly version of object -
Hello, Need urgent help. Hope for good solution. I have two classes inherited from System.Collections.CollectionBase. Code: public class1: System.Collections.CollectionBase { //.. } public class2: System.Collections.CollectionBase { private class1 obj = new


Collections - Read only -
I was using a collection to hold an array of classes. I wanted to change the value of one of the classes in the array. I make a reference to the class within the array and I change the value. Now it seems that the actual value never changes. So I guess I have to create an array with


How to use create and collections -
im getting tired of dont know how to use that damn collections..any tuturials explaining in-deph how to use them?


What are collections in pl/sql -
What are collections in pl/sql? anybody let me know.


Collections in C++ -
(warning: I am new in C++) What is mostly and commonly used in C++ representing VB like collections? Vectors ? Thank ya all !


3-keyed Collection -
Hi all, I recently came across a situation where it would have been useful to have a three keyed collection. Is this at all possible in .NET by overloading any of the classes? I know you can create two key collections with dictionaries but it would have been more useful to have t


Passing VB collections to dll C++ -
Is anyone knows how pass collections with a related class to a dll C++? I think I must use The STL (standard Template Library) in C++ but I don't know how make the interface COM Thanks a lot David


Collections of Classes -
I am trying to build a toolbar, in which I want to use classes. Using the class builder I designed a collection of a button class. Now I want to be able to "repaint" the button when it is changed. I want it to behave like the normal toolbar that comes with VB, so I can pa


Imported Custom Collection Classes -
Hi All, I'm just starting to get into the full swing of VB OOP programming and im starting to experiment with custom collection classes. I've got the collection class down just fine, I can make one with no worries, but how do I get that collection into another class? unless im think


multiple connections with winsock control -
having some really wierd problems when i have several clients log into this echo server thing i'm trying to make. best description: all incoming traffic is recieved by the server, only the latest client to connect recieves data from the server. (if a new client connects, then it sta


About Wrapper Classes ... -
I am really disappointed over this thing. If everything in Java is classes, why have separate wrapper classes for the built-in data types? Why not embed the functionality in the int, float etc.? The only possible reason I can think up of is that these intrinsic data types are re


Save Data problem -
Hello Everyone I was programming something, where I used a UDT with arrays in it. I used to save that just by saving the UDT as binary. Now I want to replace the arrays through collections. Does anyone know of some good ways to save out of classes, and just as important to load it a


Any tuturials out there about Collections -
i would like to learn how to effectively i could use collections..anyone could give me alink to tuturial or try to explain?


collections help please!!! -
What exactly does a collection do? if i set a new collection in my form will i be about to use the collection in other forms? what is a collection of classes are there?? can only show me basics of a collection with examples add , remove , items etc keywords? understanding is m


Manageing collections... -
Hello! I'm developing a demonstrative game and I need to use different Collections to store my informations. Here is my problem: the elements of my Collections usually refers to elements of other Collections, as the following example. BOSSES Collection (contains Names) Smith


Quest about Classes -
Hi there, How can I make my classes to event after some specified time of interval? Is it posible? I am noob to classes!! Sanjay


How many classes too many for one .dll -
Basically, I have 9 classes in one dll right now.... What considerations as far as performance should i bear in mind? Would 50 classes in one dll be too much? Or should I split them into more dll 's? These are .Net dll's by the way...


Windows Control classes -
Does anyone know what these classes are? ApexGrid. 19 VBFocusRT AfxWnd40 I get these from an application when I enumerate window classes and names


Who's afraid of classes -
Ok, this may seem to a lot of you like a stupid question, and I don't blame you. I've been programming in VB for about 4 years now (about 1 year was for fun only) and I've never used classes in any of my projects (except DLLs). I used everything but classes. I don't have anything ag