Close([Arguments: WebFormResult = 0]);
Arguments. Result of closing web form.
The Close method closes the current web form.
Further behavior on Close method call depends on the value of the modal property that is set in the web form design mode:
modal = True. Method call results in closing the modal web form.
modal = False. Method call will result in closing the web form, returning the focus to the object navigator, if the web form was displayed in the current tab, or in closing the tab/window if the web form was displayed in a new tab/window.
If web forms are used in the designer of business applications:
modal = True. Method call results in closing the modal web form.
modal = False and the web form is opened in the current tab. The web form closes, and the user is returned to the business application root folder.
modal = False and the web form opens in a new tab/window. The web form closes, and the user is returned to the business application root folder in a new tab/window.
The Arguments parameter is used to return the result of closing a modal form to the IWebForm.ShowModal method.
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: