Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Trends - property of object TrendsView

Description:
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, the property returns an value Nothing (see example). Nothing value can be tested by VBScript Is operator.
Syntax:
Trends(vTrend As Variant) As Object
Calling:
Set oTrend = oTView.Trends(nIndex)
Parameters:
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.
Note:
Property access for read only.
Example:
Dim oTrend
Set oTrend = oTView.Trends("t1")
If Not oTrend Is Nothing Then
  oTrend.ValueMin = 100
  oTrend.ValueMax = 200
Else
  ' .. error
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice