Count - method of the tvPoints object
Description:
Returns the number of values in the buffer of this object according to of the sFilter parameter.
Syntax:
Long Count(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 nCount = oPoints.Count("visible");
Dim oTView, oPoints, nCount
Set oTView = pMe
Set oPoints = oTView.Trends("t1").Points
nCount = oPoints.Count("visible")
Example2:
See the example in the
Avg method.