IModelling.SetPeriod

Fore Syntax

SetPeriod(StartDate: Variant; EndDate: Variant): IMsPeriod;

Fore.NET Syntax

SetPeriod(StartDate: object; EndDate: object): Prognoz.Platform.Interop.Ms.IMsPeriod;

Parameters

StartDate. Period start date.

EndDate. Period end date.

Description

The SetPeriod method generates period by specified dates.

Comments

For the method correct work, period start date should be less than period end date.

SetPeriod can be used to set up calculation period in arithmetic methods where data array is the input parameter. To set calculation period, determine SetPeriod in any array place, for example:

Average({Albania|BCA[t]}, SetPeriod(2000,2010))

The mean value of the {Albania|BCA[t]} series will be found for the period from 2000 to 2010.

Methods, in which SetPeriod can be used

Fore and Fore.NET Examples

The property use is given in the example for IModelling.MovAvg.

See also:

IModelling