Used in conjunction with pageExecute, absolutePage() returns the current page number in a paged recordset. If the optional parameter is set to a value different from -1, it forces the current page number to be the value set.
$pn = $result->absolutePage();