편집

다음을 통해 공유


TestPage.Last() Method

Version: Available or changed with runtime version 1.0.

Sets the current row of the test page as the last row in the data set.

Syntax

[Ok := ]  TestPage.Last()

Parameters

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

Return Value

[Optional] Ok
 Type: Boolean
true if the current row has changed, otherwise false.

Remarks

If TestPage is closed or has never been opened, then the method call fails.

The Last method loops over all records until it sets the identifies the current record. For each record, the OnAfterGetCurrRecord Trigger is executed.

Example

This example sets the current row to the last customer in the dataset. It requires that you create a TestPage variable named CustomerList with a Subtype of Customer List.

CustomerList.OpenView;  
CustomerList.Last;  
Message(CustomerList.Name.Value);  
  

TestPage Data Type
Get Started with AL
Developing Extensions