ILanerSerie.ObservationValue

Syntax

ObservationValue(Attribute: IMetaAtribute; Date: DateTime): Variant;

Parameters

Attribute. Indicator observation attribute.

Date. Calendar point.

Description

The ObservationValue property determines observation attribute value of an indicator in defined calendar point.

Example

Executing the example requires a form with the following components: the Button component named Button1, the TabSheetBox component named TabSheetBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for TabSheetBox1. A workbook of the time series database should be loaded to UiErAnalyzer1.

The example is a handler of the OnClick event for the Button1 component.

Add links to the Cubes, Express, ExtCtrls, Forms, Laner, Rds, and Tab system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ErA: IEaxAnalyzer;
    Laner: ILaner;
    Series: ILanerSeries;
    Serie: ILanerSerie;
    Rubricator: IRubricator;
    ObsAttr: IMetaAttributes;
    attr: IMetaAttribute;
    dt: DateTime;
Begin
    ErA := UiErAnalyzer1.ErAnalyzer;
    Laner := ErA.Laner;
    Series := Laner.Series;
    Serie := Series.Item(0);
    Rubricator := Laner.RubricatorInstance.Rubricator;
    ObsAttr := Rubricator.Values.Attributes;
    attr := ObsAttr.FindByKind(MetaAttributeKind.Value);
    dt := DateTime.ComposeDay(200611);
    Debug.WriteLine(Serie.ObservationValue(attr, dt));      
End Sub Button1OnClick;

After executing the example the console window displays the value of the workbook first series for the 1st of January 2006.

See also:

ILanerSerie