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


Sets the scale of the current pen or of all pens on a trend. You can enter a scale in the Value argument, or leave the Value blank. A form is then displayed in run time for the operator to enter a value for the scale.


TrendSetScale(AN, Percent [, Value] )


The AN of the trend.


The scale to be set:

0 - Zero scale

100 - Full scale


An optional value for the scale, as a string.

Return Value

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

Related Functions

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


See built-in trend templates.

See Also

Trend Functions