Removing a subitem from a collection

Posted on 2002-03-29
Last Modified: 2010-05-02
Is it possible to remove a sub item in a collection. The remove method removes a whole member from a Collection object but if these members contain sub item can they be removed or changed to blank?

Question by:AstonVilla

Expert Comment

ID: 6904735
P I N G!

Expert Comment

ID: 6904757
It is not posiible with collection object. So for that task you should develop the collection class there you can write metods to do it for you.

Accepted Solution

Z_Beeblebrox earned 50 total points
ID: 6910189
What do you mean by subitems? Do you have a collection of collections? If so, the following will work:


That removes the 4th "subitem" from the 3rd item.

LVL 49

Expert Comment

ID: 7637969
Hi AstonVilla,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Z_Beeblebrox's comment(s) as an answer.

AstonVilla, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
DanRollins -- EE database cleanup volunteer

Expert Comment

ID: 7754878
per recommendation

Community Support Moderator @Experts Exchange

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now