InsertThumb Method (ASlider)

Inserts a thumb to the collection at the specified index location on the object.

Syntax

[ lInsertThumb = ] Object.InsertThumb ( vThumb )

The InsertThumb method syntax has the following parts:

 

Name

Type

Description

Object

ASlider

ASlider control

vThumb

Val Variant

An integer specifying the index of the thumb on the object.

lInsertThumb

Long

The returned index.

Comments

The index is zero-based. If the index is out of the range, adds the thumb to the end of the collection.

Example

The following example will insert a thumb to an ASlider control before the 1st thumb:

sld1.InsertThumb(0)

Applies to

ASlider

See Also

AThumb, RemoveThumb, Thumbs