Promotic

LabelFormatType - property of the tvScale object

Description:
Format type of the legends at the scale main ticks.
Syntax:
Long LabelFormatType
Values:
0 - LabelFormat or tvTrend.LabelFormat = number. Specifies the number of valid digits from the difference tvTrend.ValueMax and tvTrend.ValueMin Automatic mode, legend is displayed so that is it shown with the sufficient precision according to the scale range (ValueMax - ValueMin).
1 - LabelFormat or tvTrend.LabelFormat = number. Specifies the number of decimal places.
Default for value scale.
10 - LabelFormat or tvTrend.LabelFormat = string. Specifies the formatting rule.
Default for time scale.
Note:
Property access for read and write. The default value of this property is defined in the "Type of format:" configurator of this object.
 
This property is also functional in Web panels.
 
The values 0 and 1 can be used only:
- for value scale or
- for time scale, if set PmgTrendViewer.TimeType = 1 (i.e. the time scale is numeric).
See also:
Example:
Legends of the value scale are numeric values to 2 decimal places. Legends of the time scale are a time with the format: day.month.year NewLine hour:minute:second.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;

oScaleTime.LabelFormatType = 10;
oScaleTime.LabelFormat = "%d.%m.%Y\\n%H:%M:%S";

oScaleValue.LabelFormatType = 1;
oScaleValue.LabelFormat = 2;
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.