Copyright © 2001-2019 MultiMedia Soft

PlayListMoveItem method

Previous pageReturn to chapter overviewNext page

Remarks

 

Moves a song (item) from a source position to a destination position inside the playlist.

 

For further details about playlists management see the How to create and manage a playlist tutorial.

 

 

Syntax

 

[Visual Basic]

control.PlayListMoveItem (

nPlayer as Integer,

nOldIndex as Integer,

nNewIndex as Integer

) as enumErrorCodes


 

[C++]

short control.PlayListMoveItem (

short nPlayer,

short nOldIndex,

short nNewIndex

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that owns the playlist

nOldIndex

Number representing the zero-based source position

nNewIndex

Number representing the zero-based destination position

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The call was successful.