IWebFormComponent.Close

Syntax

Close([Arguments: WebFormResult = 0]);

Parameters

Arguments. Result of closing web form.

Description

The Close method closes the current web form.

Comments

Further behavior on Close method call depends on the value of the modal property that is set in the web form design mode:

If web forms are used in the designer of business applications:

The Arguments parameter is used to return the result of closing a modal form to the IWebForm.ShowModal method.

Example

Executing the example requires that the repository contains a web form, a button named Button1, and some components on the form.

Add links to the WebForms system assembly.

Sub Button1OnClick;
Begin
    Self.Close(WebFormResult.OK);
End Sub Button1OnClick;

Clicking the button closes the current web form and returns the specified result of closing.

See also:

IWebFormComponent