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

Comparing info in a Collection -

I am currently using a collection to store data about products. I want to compare fields in 2 different collection items, and then sort by which has the greatest number in the collection item that is being compared. For example I have:

Collection Item 1 has a field names matches
Collection Item 2 has the same
Collection Item 3 has the same

I want to figure out which one has the greatest value in the matches field and show that collection Item

Thank you,
Corey

 

Comparing info in a Collection -
I am currently using a collection to store data about products. I want to compare fields in 2 different collection items, and then sort by which has the greatest number in the collection item that is being compared. For example I have: Collection Item 1 has a field names matches


adding to a collection -
I'm unfamilar with how to add an item(record) to a collection. I've already established the collection but keep getting errors on the add. My code looks like: collection.add ( When I put the first ( in place VB opens up this info box listing all my collection elements and their


Collection Help -
ok I'm trying to set up a collection to store multiple properties per Item. (e.g. I want it to store partnumber, description, etc in the same collection Item) There will be multiple Items in the collection with the same info. I am trying to distingush between the different items by


Saving info from a collection -
I have a collection made up of two different classes. I can loop through the collection writing all the information out to a text file for each item in the collection but how can I read the information back off the text file and back into a new collection?? If there is a better way


.NET information request -
I want an article form a trustable source like microsoft comparing each different .NET language in terms of speed. Also, any information reguarding .NET's memory management would be appreciated. I know VB and C# use garbage collection (*shudder*) but C++ will use RAII. Since the .NE


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


Collection in dll be accessable from other dll. -
Ok, here is what I need. I need to have a dll that will hold a collection of connected sockets. A third party dll needs access to this collection. I have tried this many times before, but whenever I try to access the collection which I tried making static, the thrid party dll just gets


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


Help with Binding Collection -
Hello, all. I have a problem that I have been working with for a couple of days, and I have not been able to solve it. I am hoping that someone here can give me some advice. I have a form that allows a user to search a data base. If the recordcount > 0 it opens another form and


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


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 t


How to get values from session objects -
I ahve a collection object saved in the session I have also declared a new collection object When I do the following(written from memory ) dim newcoll as new collection newcoll = Cast(Session("Collection"), Collection) I get only a reference to the session colle


adding a collection to an arraylist collection -
for instance, i have a people class and a people collection. i would like to create a phone collection which consists of phone class and phone collection and then attach this to the people class object. so, in effect, i can call each people item and have the phone collection


Struggle with collections -
Is it possible to know on what index you are in your collection? I work with VB6 but because I'm a straight object oriƫntated [Edited by MartinLiss]I work with classes (yeah right). So I've got a collection of this class. Problem is on a certain moment I want to change the data of one


Garbage Collection in VB -
Do you have to do garbage collection in VB like you do in C? Or does VB do automatic garbage collection like Java? If I must free up the memory used by VB, what are the commands? I did a search for garbage collection in MSDN and got nothing related to VB. I am assuming some G


return a collection from a fucntion -
Hi I have a command button when clikced goes to a class module function, which get a collection of all mails in my Inbox. I need to return the collectoin to myform and be able to access the collection. How do i do it????? When i do the processin in same Sub it works fine. But when


For Each Loop Problem -
I'm trying to use a For Each loop to iterate through a collection of items from a combobox and compare the value of each item in the collection to a string value to find the index of the string value in the combobox and then set another combobox's .selectedIndex to that index. But inst


Need help with Collections -
I posted a question a week ago about comparing 2 huge lists and getting the difference. One of the suggestions was to use a Collection. It worked and it was 20 times faster than what I had. The problem is that it only finds 8 matches when there are about 10,000 matches. The lists are f


[2008] - Control Collection Order -
Hello I need some info about control collection. In my application i'm using a virtual keyboard, coded by me, everything works almost fine... Almost, because i have a tab key, to jump to another textbox inside the form, group, whatever. I'm doing this with a for cycle to run all


Labels collection... -
I have a prob which may be able to be solved by a collection... Can someone give me quick runthrough on how I could create a collection of labels, and set their properties. I would like to reference them by an Index, not a Key. (I'm using a collection 'cause I want the Remove me


Creating a collection -
Hi. I have a small problem about creating a collection. I sure know how to loop through all controls of a collection (for each ctl in form.controls). The problem is I would like to CREATE such a collection myself. (Ex.: I will add to a collection all the textboxes that the user have


How to collect values -
Im working on a component that will perform things based on the data in a value collection. It works like this.. I get some values ranging from 1- ~100 like (5, 81,67,43,12,99) Based on these values I must then perform certain things.. like if mycol.Find(5) then console.w


Checking for instance of string in collection -
Hello folks, I'm looking to make my own duplicates remover whichout using others available and am using a collection for this, as a collection I beleive can only hold one of the same item once, if there any method available that can check the current collection for a item already house


Transferring contents of server collection to local collection -
Hello folks, I have an ASP page which uses a server based dll to instantiate a collection which is used to poulate a list box. The collection is two columns and I want to use the second column to populate a text box based on the row in the listbox which is selected. I am not an A


Advanced collection -
Can anyone tell if this is possible in VB6? I have an object structure like this. Rootobject --companycollection ----company ------contactcollection --------contact But now I want to make another collection that points directly into the existing contact collection. Rootob


Collection v/s Datatables -
What is better in terms of performance and resource-use, a Collection or a DataTable? What are the different situations in which a Collection will work better than a DataTable, and vice versa? What would be the ideal method for replacing a Collection in code with a DataTable?


Passing VB.net collection to VB6 com dll -
Hi, I have a VB6 COM DLL that expects a VB6 style collection object as parameter to a method. It seems like I can not pass a VB.NET created collection. What do I have to do? I can not make any modifications to the VB6 COM DLL. The VB6 DLL accesses items in the collection by a


Edit/Display/Deleting from a Collection -
Class/collection newbie questions for a homework assignment. Here we go: 1 form (textboxes to accept data and add, edit, display data in the collection) clsMotor (with defined properties for the class) clsMotors (collection that contains methods for saving, deleting, editing, disp


Loading collection from file -
I have created a student collection, attached below, to add student information to a file. What I cannot figure out is how to modify the collection so it saves the collection in a file or database before the program exits. When it starts up, it needs to load the collection from that f


How to get Unique List from a Collection -
Hi I have a collection in vb which has collection of strings. Is there any easy way to get unique list from the collection or do we have any thing similar to collection that gives us unique list easily. We have HashSet in java which gives us unique collection.So do we have any


ado parameter array -
i have an ado function, that connects to a db and excutes a storedproc with no params. i'd like to pass an array (or some collection) to the function, that contains the 5 fields necessary to create a parameter createparameter(name, type, direction, size,value) the thing is i'm n


Comparing dates before transferring data from Access DB to Excel (ADO) -
I'm guess I need to transfer the info into a buffer (recordset?), do the comparison, then only extract the relevant data to Excel? Is there a simpler way of doing this? And does anyone have links to examples? Must the Format be identical (eg. Long Date vs Long Date, or can it be li


Recordset to Collection -
I have tried taking the records from a recordset and building a collection. Problem is that I close the recordset afterwards. When trying to access items in the collection, they are invalid (because the RS is closed). How can I transfer the values of the RS rather than create poin


comparing recordsets -
Hi Folks, i have a small problem comparing two recordsets. Well maybe i should start to explain from the beginning. I have two Access Databases with the exact same Table and Fieldstructures. Next I fill two recordsets with a statement like SELECT * FROM mytable where Field = Opt


enumerate collection in RichTextBox -
How do I print the items in my collection in a RichTextBox. If I try to show the items in my collection in debug.print, all the items in my collection show. So I know I have the enumeration part set up correctly. If I try to use the same process in the RichTextBox, it loops through


Java - Two Collections. The same elements or have no elements in common -
Two methods are needed in this case. Code: boolean containsAll(Collection<?> c) boolean disjoint(Collection<?>c1 Collection<?>c2) Since [i]containsAll(Collection<?> c)[i] is defined within the Collection interface all concrete implementations will be abl


CLR & Garbage collection -
in ASP there is no such concept called "Garbage collection". In .net web development how the Garbage collection works. how can i expose garbage collection. can any one give me an example or any presentation for Garbage collection


Creating a new collection (clearing it) -
Hi, If I create a collection class with a private collection variable to hold all it's child items, do I need to set each item to "Nothing" before creating a new collection? Like: Dim errxDelete As Error For Each errxDelete In mcolErrors Set errxDelete = Nothing


comparing document -
hi. i am comparing two word documents and saving compared document in a new location. i have to get the inserted texts and deleted text. if the problem description is not clear plz query me.


Enterprise Java Bean in .NET -
Hi, I am doing a report comparing .NET with J2EE and am trying to figure out how exactly .NET compensates an EJB? What takes care of the connection et al with the database in .NET? Any info on this would be kindly appreciated. Cheers.