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

TrnGetCursorEvent

Gets the event number of a trend, at the trend cursor position for a specified pen. This function only operates on an event-based trend.

Syntax

TrnGetCursorEvent(AN, Pen)

AN:

The AN where the trend is located.

Pen:

The trend pen number:

0 - The pen currently in focus

1...8 - Pen1. . .Pen8

Return Value

The event number, or 0 (zero) if the trend cursor is disabled.

Related Functions

TrnSetEvent, TrnGetCluster, TrnGetEvent

Example

! For the trend at AN20
DspText(31,0,TrnGetCursorEvent(20,0));
/* Displays the trend event at the cursor for the pen currently in focus. The event will display at AN31. */

See Also

Trend Functions