ExistingKey


Description

Returns true only if an item is a valid index into collection.

Syntax

aCollection.ExistingKey(possibleindex)

Parameter Description
aCollection a collection.
(possibleindex) An integer, or a string, or a object specifying a possible index into the collection. 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.

Remarks

When an item is removed from the ModelNodes. 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.

Examples

See: Collections and Maps: an Overview

Applies To

Assignment, ChildNodesEvidence, Indexes, KeyObjects, Keys, ModelNodes, Models, ParentNodes, Properties, PropertyTypes, Recommendations, SharedDomains, States