MoveValueLabel Method (AAxis)

Moves a value-label from the collection of value-labels.

Syntax

Object.MoveValueLabel ( lValueLabelIndex, lMoveToIndex )

The MoveValueLabel method syntax has the following parts:

 

Name

Type

Description

Object

AAxis

AAxis object.

lValueLabelIndex

Val Long

An integer specifying the current index of the value-label on the object.

lMoveToIndex

Val Long

An integer specifying the target index of the value-label on the object.

Comments

The value-label at the current index must exist, or you will get a run-time error. If the target index is out of the current range, you will get a run-time error.

Example

The following example will move the value-label at the 5th index to the 7th index:

aaxs1.MoveValueLabel(4,6)

Applies to

AAxis

See Also

GetValueLabel, InsertValueLabel, RemoveValueLabel, SetValueLabel