Remove (General)


Description

Removes an item from a collection.

Syntax

aCollection.Remove(index)

 

Parameter Description
aCollection a collection.
(index) An integer, or a string, or a object specifying the index of the item to remove. Integer indexes are zero-based, meaning the first item in the collection has index 0. A string index is valid only if the string is the name of an object used to index the collection. An object is valid only if it used to index items in the collection.

Return Value

None.

Remarks

When an item is removed from the Models, PropertyTypes, or States collections, it becomes a "zombie". With one exception, if you try to use a zombie, you'll get an error message. The one exception is that the ExistingKey method can test if a zombie is a member of the collection.

Example

See: Collections and Maps: an Overview

Applies To

Assignment, Evidence, Models, Properties, PropertyTypes, SharedDomains, States