Hi Helmut,
By "record ID", do you mean the array index? In the ClickHotSpot event, you can obtain the x data value. You can then do a binarySearch to obtain the array index. It is like:
'Get the x data value
Dim xValue As Date
xValue = cd.NTime(hotSpot("x"))
'Get the array index
Dim index As Long
index = binarySearch(timeStamps, xValue)
In frmZoomScrollDemo code uses binarySearch itself to determine the startIndex and endIndex. (See the code in "drawChart".)
Regards
Peter Kwan |