TrnGetCursorMSTime
Gets the time (in milliseconds from the previous midnight) at a trend cursor for a specified pen.
Syntax
TrnGetCursorMSTime(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 number of milliseconds since the previous midnight. If the trend cursor is disabled, 0 (zero) is returned. If AN or Pen is invalid, 0 (zero) is returned and an error code is set.
Related Functions
Example
! For the trend at AN20
STRING timeStr;
STRING msecStr;
timeStr = TimeToString(TrnGetCursorTime(20,1),2) + " ";
msecStr = TimeToString(TrnGetCursorMSTime(20,1),6);
DspText(31,0,timeStr + msecStr);
! Returns "23/02/01 10:53:22.717"
See Also