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 the index - an integer value in the vTrend parameter.
"ID" - Returns tvTrend object whose ID property equals to ID.
Dim oTrend
Set oTrend = oTView.Trends("t1")
If Not oTrend Is Nothing Then
  oTrend.ValueMin = 100
  oTrend.ValueMax = 200
  ' .. error
End If
PROMOTIC 8.3.21 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