IMap.TimePoint

Fore Syntax

TimePoint: Integer;

Fore.NET Syntax

TimePoint: integer;

Description

The TimePoint property determines the current time point of the timeline.

Comments

A timeline is used to show data changes in time:

Fore Example

Executing the example requires an express report with the EXPRESS_MAP identifier, in which map displaying is set up. The map should have a map layer with the Regions identifier.

Add links to the Metabase, Express, Map system assemblies.

Sub main;
Var
    mb: IMetabase;
    Express: IEaxAnalyzer;
    Map: IMap;
    TimePoint: Integer;
Begin
    mb := MetabaseClass.Active;
    Express := mb.ItemById("EXPRESS_MAP").Bind As IEaxAnalyzer;
    Map := Express.Map.Map;
    TimePoint := Map.TimePoint;
    Debug.WriteLine("Time Point: " + TimePoint.ToString);
End Sub main;

After executing the example the console window displays the number of the current time point of the timeline. The numbering starts with zero.

For example, if a time point is set in express report:

 the console window shows:

Time Point: 2

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Map;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Express: IEaxAnalyzer;
    Map: IMap;
    TimePoint: Integer;
Begin
    mb := Params.Metabase;
    Express := mb.ItemById["_EXPRESS_MAP_"].Bind() As IEaxAnalyzer;
    Map := Express.Map.Map;
    TimePoint := Map.TimePoint;
    System.Diagnostics.Debug.WriteLine("Time Point: " + TimePoint.ToString());
End Sub;

See also:

IMap