Redigera

Dela via


Page.Run() Method

Version: Available or changed with runtime version 1.0.

Creates and launches a page that you specify. You can use CLEAR method to remove the page.

Syntax

 Page.Run()

Parameters

Page
 Type: Page
An instance of the Page data type.

Remarks

If, at design time, you don't know the specific page you want to run, then use this method or the Page.RunModal method and specify the page in the Number parameter.

If you do know, which page you want to run, then you can create a Page variable, set the subtype of the variable to a specific page, and then use the RunmMethod (Page) or RunModal method (Page) on the Page variable.

When you want to close the page, use CurrPage.Close. CurrPage is a predefined system variable. For more information, see System-defined variables.

The Run method will clear the instance of the page every time Run completes, which means that all variables inside the page are initialized. The RunModal method doesn't clear the instance of the page every time. For more information, see RunModal method (Page).

Example

Page.Run(4711)

Page Data Type
Get Started with AL
Developing Extensions