Promotic

Index - property of the tvTrend object

Description:
The property returns or sets the order of the tvTrend object.
Syntax:
Long Index
Note:
Property access for read and write.
 
This property is also functional in Web panels.
The object order is given by the way of calling the PmgTrendViewer.AddTrend or PmgTrendViewer.InsertTrend method.
Trends are drawn step by step according to the order. The active trend is drawn up most - its index is given by the PmgTrendViewer.TrendActive property.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends("t1");
if (oTrend)
{
var nIndex = oTrend.Index;   // Reading from the property
oTrend.Index = 2;   // Writing into the property
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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