Express > Express Assembly Interfaces > ILanerBox > ILanerBox.DecreaseLag
DecreaseLag;
The DecreaseLag method decreases lag of a selected series.
The ILanerBox.CanDecreaseLag property indicates whether the series lag can be decreased.
Executing the example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component that is a data source for LanerBox. A workbook of the time series database should be loaded to UiErAnalyzer1.
This procedure should be assigned as a handler of the OnClick event for the button. The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Can: Boolean;
Begin
Can := LanerBox1.CanDecreaseLag;
If Can Then
LanerBox1.IDecreaseLag;
End If;
End Sub Button1OnClick;
After executing the example, lag of the selected series is decreased if possible.
See also: