Promotic

RemoveGraph - method of the tvTrend object

Description:
Method serves for removing the existing nIndex-th object of the tvGraph type.
Syntax:
Boolean RemoveGraph(Long nIndex)
Parameters:
nIndex(Long) removes the nIndex-th graph in the list of graphs
Return values:
true - Object was successfully removed
false - the nIndex-th object was not found
Note:
Removing the object of the tvGraph type can be done in the "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.18 SCADA system documentation - MICROSYS, spol. s r.o.

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