TrnSetEvent
Sets the start event of a trend pen. This function only operates on an event-based trend.
Syntax
TrnSetEvent(AN, Pen, Event)
AN:
The AN of the chosen trend.
Pen:
The trend pen number:
0 - The pen currently in focus
1...8 - Pen1. . .Pen8
Event:
The number of the start event.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
TrnGetEvent, TrnGetCluster, TrnGetCursorEvent
Example
! Sets pen1 to event number 123456
TrnSetEvent(20,1,123456);
! Scrolls pen1 back by 100 events
TrnSetEvent(20,1,TrnGetBufEvent(20,1,0)-100);
See Also