Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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)
Calling:
oTrend.RemoveGraph 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.12 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