IMapTimeDataAdapter.Data

Syntax

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

Parameters

Attribute. Parameter that determines, which data is 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 layer with the Regions name. Create a form, add a button with the Button1 name to it, the UiErAnalyzer component with the UiErAnalyzer1 name, specify an express report as an object of the UiErAnalyzer1 component. Add a link to the Map system assembly.

Class TESTForm: Form
    Button1: Button;
    UiErAnalyzer1: UiErAnalyzer;
    Button1: Button;

    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;

End Class TESTForm;

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