Adds a ChannelFormat object to a Channel object.
Syntax
Station.ChannelFormats.Add( StationFileName, FormatType )
Parameters
StationFileName
A String value specifying the file name of the station format to be added.
FormatType
The type of the station format to be added.
Return Values
Returns an ActiveX HRESULT error code.
Remarks
The station format is an enumeration of type MCMCHFORMATTYPE, has the following values:
Value | Mnemonic | Description |
0 | MCM_INVALID_CH_FORMAT | Invalid |
1 | MCM_ASD_CH_FORMAT_FILE | .asd File |
2 | MCM_NSC_CH_FORMAT_FILE | .nsc File |
3 | MCM_ASF_CH_FORMAT_FILE | .asf File |
Example
' get the second station
Set MyStation = NSChannelMgr.Channels.Item(1)
' add a new format described in an NSC file
MyStation.ChannelFormats.Add "c:\liveshow.nsc" MCM_NSC_CH_FORMAT_FILE
See Also
© 1996-1998 Microsoft Corporation. All rights reserved.