Search results

  1. B

    Removing objects from an arraylist

    I think I've got it. Thanks for all the help.
  2. B

    Removing objects from an arraylist

    I gave this a try, and I get the following error: Collection was modified; enumeration operation may not execute. I have read that you cannot move through an arraylist and remove items using a for next loop, because the index changes when a removal is done (or something to that effect)...
  3. B

    Removing objects from an arraylist

    I'm probably being a little dense, but I'm having trouble throwing it all together. I can get the index of the matching structure using your code. Should I then run through the arraylist using a while loop, and removing all entries except the one(s) that match the numbers retrieved in the for...
  4. B

    Removing objects from an arraylist

    Declarations In a module: <Serializable()> Structure AssetInfo Public aID As Integer Public aName As String Public aInfo As String ....... End Structure Public aData As AssetInfo Public aList As ArrayList ' Default list - Used for another purpose Public tmpList As ArrayList...
  5. B

    Removing objects from an arraylist

    I need to remove objects from an arraylist based upon certain user-specified conditions. I can successfully loop through the arraylist and remove items, but I am having a problem correctly referencing WHICH item in the arraylist I want removed. This is due my use of structures (it's an arraylist...
  6. B

    Dataset and UDT

    I am trying to set up a dataset, but don't know how to go about it correctly. I have multiple instances of a udt, which I would like to store in a dataset (for easy manipulation) and then write to an xml. Can someone please help me figure this out? To the best of my knowledge, I can...
Top Bottom