IMsModelPeriod.ForecastEndDate

Syntax

ForecastEndDate: DateTime;

Description

The ForecastEndDate property determines forecasting period end date.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. The model with the Model_1 identifier is created in container.

Add links to the Metabase, Ms system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Model: IMsModel;
    Period: IMsModelPeriod;
Begin
    MB := MetabaseClass.Active;
    Model := MB.ItemByIdNamespace("Model_1", MB.ItemById("MODEL_SPACE").Key).Edit As IMsModel;
    Period := Model.Period;
    Period.IdentificationStartDate := DateTime.ComposeDay(200011);
    Period.IdentificationEndDate := DateTime.ComposeDay(20051231);
    Period.ForecastStartDate := DateTime.ComposeDay(200611);
    Period.ForecastEndDate := DateTime.ComposeDay(20101231);
    Model.UseModelPeriod := True;
    (Model As IMetabaseObject).Save;
End Sub UserProc;

After executing the example sample and forecasting periods are changed for the model. The time series use of specified periods on problem calculation is also set for model.

See also:

IMsModelPeriod