MTRemove Method (MTNVS interface)

             

 

Removes an item from this MTNVS collection.

 

Syntax

object.MTRemove Name

 

The MTRemove method syntax has these parts:

Part

Description

object

An object expression that evaluates to an MTNVS interface.

Name

A String which must match the MTName property of the item to be removed.

 

Remarks

Name matching takes the collection's MTStyle property into account. This specifies case and locale sensitivity, and whether leading and trailing blanks are trimmed.

The removed item becomes an orphan; that is, its MTParent property becomes Nothing.

Another way to remove an item from a collection is to call the item's MTDetach method, which has the same effect.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseACCESSDENIED

The collection cannot be modified because it is frozen; that is, its MTReadOnly property is true.

pseNAMENOTFOUND

The collection does not contain an item whose MTName property matches Name.

Enabling Operational Intelligence