Sum - method of the tvPoints object
Description:
Returns the sum calculated from values according to the sFilter parameter.
Syntax:
Double Sum(String sFilter)
Parameters:
sFilter | (String) Filter of values that are to be included into the processing.
"all" - All values in the buffer.
"visible" - All values that are in the time of calling the method in the visible part of the buffer. |
---|
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe;
var oPoints = oTView.Trends("t1").Points;
var nSum = oPoints.Sum("visible");
Dim oTView, oPoints, nSum
Set oTView = pMe
Set oPoints = oTView.Trends("t1").Points
nSum = oPoints.Sum("visible")
Example2:
See the example in the
Avg method.