Index PropertyIndex Property*
*Contents  *Index  *Topic Contents
*Previous Topic: ChannelTopic Property
*Next Topic: MemberCount Property

Index Property

Uniquely identifies the Channel object in the Channels collection.

Syntax

value=object.Index

Parameters

valueRequired. A long integer that will receive the index of the Channel object.
objectRequired. An object expression that evaluates to a Channel object.

Remarks

Access is read-only.

The index of a channel is not fixed; it can vary during the lifetime of the object. If a channel with a smaller index is removed from the collection, the index is decremented. If a channel with a smaller or equal index is added to the collection, the index is incremented.

Example

Dim lIndex As Long
Set c=MsChatPr1.Channels.Add(1, "Key1")
lIndex=chanobj.Index    'lIndex now contains 1
MsChatPr1.Channels.Add 1, "Key2"
lIndex=chanobj.Index    'lIndex now contains 2

See Also

Add, Item, Remove


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.