SetPeriod(StartDate: Variant; EndDate: Variant): IMsPeriod;
SetPeriod(StartDate: object; EndDate: object): Prognoz.Platform.Interop.Ms.IMsPeriod;
StartDate. Period start date.
EndDate. Period end date.
The SetPeriod method generates period by specified dates.
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
The property use is given in the example for IModelling.MovAvg.
See also: