TracksBoard.TrackAdd method |
|
Remarks
Adds a new track to the session at the given position.
For details about the use of the TracksBoard refer to the How to use the TracksBoard to visually compose songs tutorial.
For further details about methods of the TracksBoard refer to the TracksBoard class section.
Syntax
[Visual Basic] Public Function TrackAdd ( nIndex as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes TrackAdd ( Int32 nIndex ); |
[C++] public: enumErrorCodes TrackAdd ( Int32 nIndex ); |
Parameter |
Description |
|
|
nIndex |
Zero-based index where the track will be inserted. The current number of tracks can be obtained through the TracksBoard.TracksCountGet method. Set this value to -1 to add the new track at the end of the list of tracks. In case the index should be higher than the current number of tracks, the new track will be added at the end of the list of tracks. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |