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

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 housed within it.

Hope I've explained myself properly

 

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


Collection of Objects -
Hi ! I have a collection of objects. I would like to know how to set a certain instance of an object to nothing. My Collection may have MyCol.Item(key1) (instance 1 of object) MyCol.Item(key2) (instance 2 of object) MyCol.Item(key3) (instance 3 of object) and I want to set


Make new instance execute methods of the previous -
Dear all, I am rephrasing if someone didn't understand my previous question. I have an application that has a collection of objects and I want every time that the user tries to load another instance of the application (clicks on the *.exe file) not to be able to do so, but on the


Instance checking -
Anyone know how to perform instance checking on an MDI based application? App.PrevInstance seems to be SDI only. Thanks,


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


Checking if an object exists in a collection -
Hi team Does anyone know if there is a quick way to check if an object exists in a collection other than checking each one individually? FW


Advice on Extending Winsock Control -
I've decided to try extending the winsock control instead of creating a separate array of infos relevant to each instance of the socket. My option at the moment is: --- Make a winsock control array --- Create a collection for extend class --- Create a new instance of extend class


Dynamically copy a frame and its controls -
I have a frame as a control array, Frame1 w/index=0 and there are controls on that also as arrays, e.g. Text1, Label1, etc. all with indexes=0. And I want to dynamically make a copy of that frame along with all its contained controls, each with index=1 now. I've tried looping th


Collection question -
Hello- I've created my own class and collection called Users. Basically the User Class just has a bunch of property statements and the Collection has your basics... add, remove, count, and item. What I want to do is something like this: set objUser = colUsers.Add(rs.field


Collection of Winsock Controls -
Hi, I'm having trouble creating a collection of Sockets, using the Winsock active-x control. Can someone show me how to create a new instance of a socket, add it to the collection, and use the sockets events thanks!


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


Getting an instance -
Ok I have a class that has a populated collection by one executable. Now another executable needs to get the running isnatnce of that class containing the populated collection not create a new instance, basically do what GetObject did in VB6. anyone know how to do this?


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


prob with Single Instance -
hi back again... by this time u guys know i am developing app (look and work like windows explorer app) ok i need to have only single instance of my app ... using app.previousinstance i am able to handle...(it work fine if same exe is executed again... in a diffirent ca


VB 6 Collection -
I'm trying to create a Collection of String Arrays. However, when I try to access the collection, I have to use a variant. Is there a way to declare the Collection as of type String Array at the outset so I can avoid using the Variant datatype? Currently this is what I have to do


Keep Collection updated against DB -
I have for example: Class: Employee Collection Class: Employees Now a application will be used by multiple people and I need to know of a way that if one user adds a new employee that a second user will have that new employee added to there collection class. Basiclly trying to


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


checking if app is running multiple times -
how can i check if my app has been ran more then once instance, and if so, generate a msg that it could be run only once and quit (and not affect the first instance of the program).


Collection confusion -
I used a collection in my application, because I thought I could use a string as key for the items in the collection, but I get an error. Am I doing something wrong, or isn't it possible to use strings as keys?


checking for a previous instance of an application -
I know that app.prevInstance returns whether or not an application is already running on a machine... but, is there a way to detect if an application is already running in a network...? I have come up with 2 solutions to my problem... 1) Use the LOCKED option of the OPEN stat


ComboBoxes with Unique Values -
Hey, I have an array of 6 combo boxes. I need to ensure that user cannot enter any duplicate values into the combos. For instance, if the combo boxes have the values "string 1" ; "string 2" ; and "string 3" in them, if the user selects "string 1&quo


Clear Collection items ...., -
Hai , I have a new collection RowE , i keep adding values to the collection and perform some string comparision, addition or whatever with them all, Now when i unload the form i need to clear all the contents in the collection . That is i want, RowE.Count shld be = 0. How can


Sharing a class instance -
Hi, I got 5 forms. The first (main) is nothing but a navigation bar I created and an iFrame, and the other 4 (1.aspx - 4.aspx), are hosted in this iFrame, depending on what link are clicked on the navigation bar. There's some information I get from the database that will be shar


Collection inside of a structure -
I am trying to create a text parser that breaks up an aspx.vb file into codeblocks. I am somewhat new to oop and I am not sure I am going about this the right way because I am getting "Object reference not set to an instance of an object" error when I try to add a structure t


collection and string array Directory.Getfiles -
hi all i want to create dynamic string array for example dim name() as string names is a global array in other function i want to initiate the array with the Directory.Getfiles method which returns me string array. how can i do that??? i was told to use collection??? i dont k


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


[2005] string collection -
dim string1() as string how to add data to the collection? how the dimension can be declared so that string(variable1,variable2)


determine if program is running before starting another instance of it -
I have been searching past posts to the forum, and there seem to be a lot of topic on determining if a program is running before starting another. (or something similar to that) Usually the program that is being checked is different than the one that is doing the checking. I am loo


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


Prevent new application instances from loading -
hi all, Just a short question.... I have an application that has collections (sessions) of objects and I want every time that the user tries to load another instance of the application (clicks on the *.exe file) not to be able to do so, but on the contrary to bring on top the ope


Determining if an object exists -
I am trying to write code that adds items to a collection. The problem I face is that I need to determine if an item already exists, I don't want to add it again. Because of the number of items in the collection, I do not want to loop through them all checking each one. Is there


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


Deleting Duplicates from a collection -
Does anyone have any idea how to delete duplicates from a collection. Or even better a way to check to see if the string exists in the collection before adding it. I have been through all the threads on collections and none seem to explain this problem. Thanks


Check internet instance -
From a VB app I need to know how to check for a specific instance of an application running in IE by checking it's title display. Then by using AppActivate I want to send a key value to it for example {enter}. Anyone got any ideas?


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


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


Referencing Different Instances within the Class -
What are the different Ways you Can reference an instance from within the Class itself ? I know I can Create A public Collection..mmm.. or maybe even a shared Collection and reference them by index. But Is there another way??


Collection, container, controls -
Hey there. I'd need professional help =) I'm trying to create a collection with all the controls (mainly textboxes) that I will specify. After this is done, I will loop though the collection and set these controls to .visible = False. That means I need to refer to them. I tried re


compare a item in a collection -
I want to compare a string item in a collection with another string variable. I use collection.items.contains(string_var) to compare if the string_var is in the collection. But i need to compare case insensitive !! How can i do this ?


Nested Repeaters and Collection -
I have a repeater inside a repeater. The outer repeater will be bound to this: ICollection<KeyValuePair<string, ICollection<KeyValuePair<string, string>>>> Question is, how do we actually extract the details from the collection so they are bound in th