Promotic

RemoveGraph - method of the tvTrend object

Description:
Removes existing object of the tvGraph type.
Syntax:
Boolean RemoveGraph(Long nIndex)
Parameters:
nIndex(Long) Removes the nIndex-th graph in the list of graphs
Return value:
true - Object was successfully removed
false - the nIndex-th object was not found
Note:
This method is also functional in Web panels.
 
Removing the object of the tvGraph type can be done in the "tvTrend > Style > Remove" configurator.
See also:
- tvTrend.AddGraph (method)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
{
var nGraphs = oTrend.GraphsCount;
if (nGraphs)
{
oTrend.RemoveGraph(nGraphs);
}
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.