Cicode Programming Reference > Cicode Function Categories > Display Functions Introduction > DspGetSlider

DspGetSlider

Gets the current position (value) of a slider at an AN. You can call this function in the slider event to find the new position of the slider.

Note: This function is only used for V3.xx and V4.xx animations, and was superseded in later releases.

Syntax

DspGetSlider(AN)

AN:

The animation-point number.

Return Value

The value of the slider from 0 to 32000. If no animation exists at the AN, -1 is returned.

Related Functions

DspSetSlider

Example

// Get the position of the slider at AN 30
nPos = DspGetSlider(30);

See Also

Display Functions