Max - method of the tvPoints object
Description:
Returns the maximum calculated from values according to the sFilter parameter.
Syntax:
Double Max(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 nMax = oPoints.Max("visible");
Dim oTView, oPoints, nMax
Set oTView = pMe
Set oPoints = oTView.Trends("t1").Points
nMax = oPoints.Max("visible")
Example2:
See the example in the
Avg method.