Microsoft SDK for Java

getAbsolutePage

The getAbsolutePage and setAbsolutePage methods of the Recordset class identify or set the page number on which the current record is located, respectively.

Syntax

public int getAbsolutePage();
public void setAbsolutePage(int page);

Return Value

Sets or retrieves a Long value from 1 to the number of pages in the Recordset object, or retrieves one of the AdoEnums.Position values.

Parameters

page The number of pages in the Recordset object.

Remarks

Use getAbsolutePage to identify the page number on which the current record is located. Use getPageSize to logically divide the Recordset object into a series of pages, each of which has the number of records equal to setPageSize (except for the last page, which may have fewer records). The provider must support the appropriate functionality for this property to be available.

Like getAbsolutePosition, getAbsolutePage is 1-based and equals 1 when the current record is the first record in the Recordset. Set this property to move to the first record of a particular page. Obtain the total number of pages from getPageCount.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.