Copyright © 2005-2023 MultiMedia Soft

TracksBoard.TrackLockStateSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the lock state of the given track. The current lock state can be obtained through the TracksBoard.TrackLockStateGet method.

Single items can be locked through the TracksBoard.ItemLockStateSet method.

 

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 TrackLockStateSet (

nTrack as Int32,

bLocked as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes TrackLockStateSet (

Int32 nTrack

bool bLocked

);


 

[C++]

public: enumErrorCodes TrackLockStateSet (

Int32 nTrack

bool bLocked

);


 

 

Parameter

Description

 

 

nTrack

Zero-based index of the track. The current number of tracks can be obtained through the TracksBoard.TracksCountGet method.

bLocked

Boolean value indicating if the track must be locked.

Supported values are the following:

Value

Meaning

false

The track is not locked.

true

The track is locked.

 

 

 

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