Cicode Programming Reference > Cicode Function Categories > Trend Functions Introduction > TrnGetCursorPos

TrnGetCursorPos

Gets the offset of a trend cursor from its origin, in samples.

Syntax

TrnGetCursorPos(AN)

AN:

The AN where the trend is located.

Return Value

The offset of a trend cursor from its origin, in samples, or -1 if the trend cursor is disabled.

Related Functions

TrnSetCursorPos

Example

! For the trend at AN20
! If the trend cursor is disabled
Offset=TrnGetCursorPos(20);
! Sets Offset to -1.
! If the trend cursor is 50 samples from the origin
Offset=TrnGetCursorPos(20);
! Sets Offset to 50.

See Also

Trend Functions