Editar

Partilhar via


TestPage.First() Method

Version: Available or changed with runtime version 1.0.

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

Syntax

[Ok := ]  TestPage.First()

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.

Example

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

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

TestPage Data Type
Get Started with AL
Developing Extensions