Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Trends - method of object TrendsView

Description:
Returns tvTrend object.
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 (zero-based index) 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 (zero-based index).
"ID" - Returns tvTrend object whose ID property equals to ID.
Note:
If the object specified by the vTrend parameter doesn't exist, then the method returns:
- for JavaScript: value Empty.
- for VBScript: value Nothing (see example). Nothing value can be tested by VBScript Is operator.
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

if (oTrend)
{
  oTrend.ValueMin = 100;
  oTrend.ValueMax = 200;
}
else
  //.. error
PROMOTIC 8.3.24 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