Redigera

Dela via


Page.ObjectId([Boolean]) Method

Version: Available or changed with runtime version 1.0.

Returns a string in the "Page xxx" format, where xxx is the caption or ID of the application object.

Syntax

String :=   Page.ObjectId([UseNames: Boolean])

Parameters

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

[Optional] UseNames
 Type: Boolean
true returns the page caption, if there is one; otherwise, it returns the page name. false returns the page ID as text.

Return Value

String
 Type: Text
The text of the object

Example

If you add the following code to a page method or trigger, then the returned string is displayed in a message window.

Message(CurrPage.ObjectId(true));  
  

CurrPage is a system-defined variable. For more information, see System-Defined Variables.

Page Data Type
Get Started with AL
Developing Extensions