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


Sets the end date for all pens on a trend. Samples taken after this date will not be displayed. You can enter the date in the Value argument, or leave the Value blank - a form is then displayed in run time for the operator to enter an end date.


TrendSetDate(AN, Value)


The AN of the trend.


The new date, as a string. Samples taken after date will not be displayed. This argument is optional.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

TrendDspCursorScale, TrendDspCursorTag, TrendDspCursorTime, TrendDspCursorValue, TrendGetAn, TrendRun, TrendSetScale, TrendSetSpan, TrendSetTime, TrendSetTimebase, TrendZoom


See built-in trend templates.

See Also

Trend Functions