Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Graphs - method of object tvTrend

Description:
Returns the nIndex-th object of the tvGraph type. Returns only the objects that were constructed by the designer, for example, by calling the AddGraph method, it doesn't return the GraphDefault basic object. If the object specified by the nIndex parameter doesn't exist, then the property returns the value Nothing (see example). Nothing value can be tested by VBScript Is operator.
Syntax:
Graphs(nIndex As Long) As Object
Calling:
Set oGraph = oTView.Graphs(nIndex)
Parameters:
nIndex(Long) Index to the array of the tvGraph type objects constructed by the designer
See also:
Example:
Setting the Color property (trend line color) of the 0-th tvGraph type object constructed by the designer in the trend named "t1".
JavaScriptVBScriptSelect and copy to clipboard

var oGraph = oTView.Trends("t1").Graphs(0);
if (oGraph)
  oGraph.Color = "#00ff00";  //color setting by RGB String
else
  //... error
PROMOTIC 8.3.27 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