IMapTimeDataAdapter.Data

Syntax

Data(Attribute: Variant; TimePointIndex: Integer): Variant;

Parameters

Attribute. The parameter determines, which data should be returned by a time adapter.

TimePointIndex. Parameter that determines a time point.

Description

The Data property returns the value of the time adapter indicator to the specified time point.

Example

Executing the example requires a form with the following components: the Button component named Button1 and the UiErAnalyzer component named UiErAnalyzer1. Specify the express report containing a map as an object of the UiErAnalyzer1 component.

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

Add links to the ExtCtrls, Forms, and Map system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var i: integer; Map: IMap;
    Visuals: IMapLayerVisuals;
    DA: IMapTimeDataAdapter;
Begin  
    Map := UiErAnalyzer1.ErAnalyzer.Map.Map;
    Visuals := Map.Layers.FindByName("Regions").Visuals;
    DA := Visuals.Item(0).DataAdapter As IMapTimeDataAdapter;
    For i := 0 To DA.TimePointsCount - 1 Do
        Debug.WriteLine("Name " + DA.TimePointName(i));
        Debug.WriteLine("Value " + DA.Data(14, i) As String);
    End For;
End Sub Button1OnClick;

After executing the example on clicking the Button1 button, the output shows point name and the indicator value for each time point.

See also:

IMapTimeDataAdapter