CURPOS2

Purpose:

Returns the position of the second crosshair cursor in the designated Window.

Syntax:

CURPOS2(win)

win

-

Optional. Window reference. Defaults to the current Window.

Returns:

The point number in the series where the second cursor was most recently placed. If the second cursor was never activated in the given Window, the position returned is 0.

Example:

CURPOS2 can be used to specify an index in a Window expression.

 

extract(W1,curpos2(W1),10)

 

extracts 10 points from the series in Window 1, starting from wherever the second cursor was last placed.

Remarks:

CURPOS2 allows you to simply move the second cursor to a desired part of a series without referencing a specific point number.

 

Changes in second cursor position do not propagate through the Worksheet. If you want to update a Window dependent on a new second cursor position, use the Line Editor ([F3] key) to re-enter the line so that the second cursor position is re-evaluated.

 

Note: CURPOS also allows you to reference the second cursor in a Window.

 

See CURLOC to return the coordinates of the crosshair cursor.

See Also:

CURLOC

CURPOS

CURSORON