SetValueLabel Method (AAxis)

Sets the value-label information (labels and values) at the specified index of the value-label collection for the object.

Syntax

Object.SetValueLabel ( lValueIndex, sLabel, dValue )

The SetValueLabel method syntax has the following parts:

 

Name

Type

Description

Object

AAxis

AAxis object.

lValueLabelIndex

Val Long

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

sLabel

Val BString

A string used to name the label at the specified index on the object. This property is read-only at run time.

dValue

Val Double

The value associated with the value-label at the specified index.

Comments

The value-label at the current index must exist, or you will get a run-time error.

Example

The following example will set the 5th value-label to a label of "Speed Limit" and a value of 55 to an AAxis object :

aaxs1.SetValueLabel(4,"Speed Limit",55)

Applies to

AAxis

See Also

GetValueLabel, InsertValueLabel, MoveValueLabel, RemoveValueLabel