Form.DoModal

Syntax:

DoModal(<Timeout>)

Parameters:

<Timeout> (optional)

Type: Number.
Time in seconds for which the form displays. When this elapses the form will be closed with the Undefined close parameter. If the parameter value is not assigned, then display time is unlimited.
Default value: 0.

Returned value:

Type: Arbitrary.
Close form command.
If the form opened for a choice, returns the chosen value (or an array of values, in case of the resolved plural allocation in the opened form). If value is not chosen, comes back Undefined.

Description:

Opens form in modal mode.

Availability:

Thick client.

Example:

ListForm = Catalogs.Objects.GetListForm();
ListForm.DoModal();

See also:

Form, method Open
Form, method Close

    

1C:Enterprise Developer's Community