Promotic

LabelBorderFormat - property of the tvTrend object

Description:
Format of scale edge legends.
Syntax:
Variant LabelBorderFormat
Note:
Property access for read and write.
 
This property is also functional in Web panels.
 
Setting this property is the same as the setting of the tvScale.LabelBorderFormat property and meaning depends on the value of the tvScale.LabelBorderFormatType property.
Moreover it is possible to enter here the value trend.LabelBorderFormat="$dbind", it means that this property doesn't keep its value of the format but it reads it from the tvScale.LabelBorderFormat property.
The default value is "$dbind".
See also:
Example:
If the active trend (see the PmgTrendViewer.TrendActive property) is the first trend (trend on the index 0), then the legends of the value scale edges are numeric values to 1 decimal places. If the active trend is the second trend (trend on the index 0), then the legends of the value scale edges are numeric values to 2 decimal places. The legends of the time scale edges are the 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;

oScaleValue.LabelBorderFormatType = 1;
oTView.Trends(0).LabelBorderFormat = 0;
oTView.Trends(1).LabelBorderFormat = 2;
oScaleTime.LabelBorderFormatType = 10;
oScaleTime.LabelBorderFormat = "%d.%m.%Y\\n%H:%M:%S";
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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