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

TrnGetPenFocus

Gets the number of the pen currently in focus.

Syntax

TrnGetPenFocus(AN)

AN:

The AN of the chosen trend.

Return Value

The pen currently in focus (between 1 and 8). If AN is invalid, -1 is returned and an error code is set.

Related Functions

TrnSetPenFocus

Example

! For the trend at AN20
DspText(31,0,TrnGetPenFocus(20));
! Displays the pen currently in focus.

See Also

Trend Functions