wPosition Property (Rangeslider Controls)

Applies to TestComplete 14.0, last modified on January 23, 2019

Description

Use the wPosition property to get or set the current logical position of the control’s sliders. This value must be within the range wMin...wMax (bounds are included).

Declaration

TestObj.wPosition(Index)

Read-Write Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Index [in]    Required    Integer    

Applies To

The property is applied to the following object:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The property has the following parameter:

Index

A zero-based index of the slider.

Property Value

An integer value specifying the current position of the slider.

Remarks

  • You cannot set the position of one slider beyond another. If you try, the position of a second slider will be set instead.

  • This property does not round up fractional values. For example, it may return 2.59999990463257 instead of 2.6. Use the returned value in your scripts instead of the displayed one, or use integers to specify positions of your sliders.

See Also

wMax Property (Rangeslider Controls)
wMin Property (Rangeslider Controls)

Highlight search results