The vTime time expected according to setting the TrendsView.TimeSetType property, i.e. "local time", "standard time" or "daylight-saving time".
value = oPoints.GetValueByTime(vTime, nStyle, nCount)
|vTime||(Variant) Time whereby the data points have to be searched|
|nStyle||(Variant) Type of the point specification owing to the vTime time|
0 - The data point whose time is less or equal the vTime time, is searched
1 - The data point whose time is greater or equal the vTime time, is searched
2 - The data point that is the closest to the vTime time, is searched
|nCount||(Long) Number of the returned values|
1 - Returns one value of the data point
oTView.TimeSetType = 1
val = oPoints.GetValueByTime(vTime, 0, 1) 'vTime is "local time"
oTView.TimeSetType = 2
val = oPoints.GetValueByTime(vTime, 0, 1) 'vTime is "standard time"