Copyright © 2001-2023 MultiMedia Soft

TracksBoard.TrackAdd method

Previous pageReturn to chapter overviewNext page

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 object section.

 

 

Syntax

 

[Visual Basic]

control.TracksBoard.TrackAdd (

ByRef nIndex as Integer

) as enumErrorCodes


 

[C++]

short control.TracksBoard.TrackAdd (

short 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