PeriodSettings.SetPeriod

Syntax:

SetPeriod(<StartDate>, <EndDate>, <UseWorkingPeriodByDefault>)

Parameters:

<StartDate> (optional)

Type: Date.
Beginning date of period.

<EndDate> (optional)

Type: Date.
Ending date of period.

<UseWorkingPeriodByDefault> (optional)

Type: Boolean.
If True is set, the program attempts to define the working period when the period is set (the Working Period checkbox will be selected in the dialog form).
Default value: False.

Description:

You can Sets the editing period. If possible, the object automatically gets the type of period and period value.

Availability:

Thick client.

Example:

PeriodSettings = Controls.List.StandardPeriod;
PeriodSettings.SetPeriod('20020401','20020531');


    

1C:Enterprise Developer's Community