Description

Get a selector for one or more Identifier values

Return Type

A Variant value.  

A scalar or vector of Long values each holding a non-negative index value, or a negative value denoting no match.

Syntax

object.SelectorFromID ([varIDs])

The SelectorFromID Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFeatures.
varIDsOptional. A Variant value.

A single Idenfifier value, or an array of zero or more Identifier values.

If the varIDs argument is a scalar Identifier value, then the index of the feature with that Identifier value is returned as a scalar long value. If no feature has the given Identifier, then minus 1 is returned.

If varIDs is an array of Identifier values to match, then an array of long index values is returned, giving the index corresponding to each Identifier. Identifiers that cannot be matched are returned with an negative index value.

Remarks

The feature Identifier property is a unique number associated with each feature. This method gives the feature index value(s) associated with Idenfifier value(s).

SelectorFromID is a read-only property

For McRegions with the mcofKeepRegionsAsUnion bit set in the OptionFlags property, new Identifiers are assigned for most any operation that changes the regions. The exception is simple removal of subregions; it this case, the Identifier associated with each remaining connected region is unchanged.