Previous | Next |
Adds a ChannelFormat object to a ChannelFormats collection 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 the MCMCHFORMATTYPE type, and 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
Previous | Next |