Solved

Removing a subitem from a collection

Posted on 2002-03-29
5
189 Views
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?

0
Comment
Question by:AstonVilla
5 Comments
 
LVL 2

Expert Comment

by:diarmaid
ID: 6904735
P I N G!
0
 
LVL 1

Expert Comment

by:COAtheGREAT
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.
0
 
LVL 7

Accepted Solution

by:
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:

col.Item(3).Remove(4)

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

Zaphod.
0
 
LVL 49

Expert Comment

by:DanRollins
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
0
 

Expert Comment

by:SpideyMod
ID: 7754878
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

792 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