ITimeSeries.CurrentIndex

Syntax

CurrentIndex: Integer;

Description

The CurrentIndex property returns index of the current series point.

Example

This example describes custom method. The data series is passed by points.

Public Function UserFunc(Input: ITimeSeries): Double;

Var

i: Integer;

 Begin

If Input.PointCount > 0 Then

i := Input.CurrentIndex;

Return Math.Log10(Input.Item(i));

End If;

End Function UserFunc;

The method returns the natural series logarithm.

See also:

ITimeSeries