GetValueByIndex - method of object tvPoints

Returns the value of the nIndex-th data point. The specified value of the index depends on the nIndexType parameter and refers either to the whole buffer or only to the visible part of the buffer.
GetValueByIndex(nIndex As Long, nIndexType As Long) As Variant
value = oPoints.GetValueByIndex(nIndex, nIndexType)
nIndex(Long) Index to the buffer array
>=0 - index to the buffer array
-2 - the time of the latest data point is returned
nIndexType(Long) What refers the nIndex parameter to
0 - refers to the beginning of the buffer
1 - refrers to the first data point that is displayed by the buffer viewer
Return Values:
The method returns the value of the data point on the index or Empty if no point has been found.
Let's have the buffer with 100 data points in total, 50 of them are displayed by the viewer and the index of the first displayed point is 7. Suppose that the nIndex parameter is set to 10. Then on setting nIndexType to 0 the value of the point on the index 10 owing to the beginning of the buffer is returned, on setting it to 1 the value of the point on the index 17 owing to the beginning of the buffer is returned.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice