Microsoft DirectX 8.1 (C++)

Channels.AddAt

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The AddAt method adds a Channel object to the collection at the specified index.

Syntax

objChannels.AddAt(
  new As Channel,
  index As Long)

Parameters

new

[in] Specifies the Channel object to be added to this collection.

index

[in] Specifies the index in the collection where the object is to be added.

Error Codes

If the method fails, an error is raised and Err.Number is set to a value other than zero.

Return Value

This method does not return a value.

Example Code

' Add a Channel object as the 25th object in the collection.
objChannels.AddAt(objChannel, 24)

Remarks

This method is valid only for the collection of objects returned by ChannelLineup.Channels, which is an ordered collection.

See Also