GetTimeArray - method of the tvPoints object
Description:
Returns an array of data points time from the buffer according to the sFilter parameter.
Syntax:
Array GetTimeArray(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. |
---|
Return value:
1-dimensional array of values (
PmArray object for
JavaScript or
Array data type for
VBScript).
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe;
var oPoints = oTView.Trends("t1").Points;
var aTime = oPoints.GetTimeArray("visible");
Dim oTView, oPoints, aTime
Set oTView = pMe
Set oPoints = oTView.Trends("t1").Points
aTime = oPoints.GetTimeArray("visible")