Add MethodAdd Method*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Methods
*Next Topic: Remove Method

Add Method

Adds a Channel object to the Channels collection.

Syntax

value=object.Add[(Index][, Key)] 

Parameters

valueRequired. An object expression that evaluates to a Channel object. This will contain the newly added Channel object.
objectRequired. An object expression that evaluates to a Channels collection object.
IndexOptional. A variant. If specified, it must be empty or a valid index that is a number between 1 and the current collection Count + 1.
KeyOptional. A variant. If specified, it must be empty or a unique string that will identify the new Channel object.

Examples

Dim chan1, chan2 As Channel
Set chan1 = MsChatPr1.Channels.Add(1, "Questions")
Set chan2 = MsChatPr1.Channels.Add(2, "Answers")
MsChatPr1.Channels.Add
MsChatPr1.Channels.Add , "Aud"
MsChatPr1.Channels.Add 5

See Also

Index


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