Trends - method of object TrendsView

Returns the tvTrend object (that represents the trend of a variable) from the trend container. If the object specified by the vTrend parameter doesn't exist, then the property returns an value Nothing (see example). Nothing value can be tested by VBScript Is operator.
Trends(vTrend As Variant) As Object
Set oTrend = oTView.Trends(nIndex)
vTrend(Variant) vTrend is either the index into the container array of trends or the tvTrend.ID identifier
-2 - Returns the last tvTrend object in the container.
-4 - Returns the active object (displayed over the other tvTrend objects) according to setting the TrendActive property.
0,1,2,... - Returns the object specified by index - an integer value in the vTrend parameter.
"ID" - Returns tvTrend object whose ID property equals to ID.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Acx;
var oTrend = oTView.Trends("t1");

if (oTrend)
  oTrend.ValueMin = 100;
  oTrend.ValueMax = 200;
  //.. error
PROMOTIC 8.3.23 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice