====== atLastPage ====== ~~NOTOC~~ == Syntax == bool atLastPage( optional bool $status=false ) == See Also == * [[v5:reference:connection:pageexecute|pageExecute()]] * [[v5:reference:connection:cachepageexecute|cachePageExecute()]] * [[v5:reference:recordset:atfirstpage|atFirstPage()]] ===== Description ===== Used in conjunction with [[v5:reference:connection:pageexecute|pageExecute]], ''atLastPage()'' returns true if at the last page set in a group. If the optional parameter is set true, it forces the current page to be the last. Any subsequent calls to last page will return this page. ===== Usage ===== $lp = $result->atLastPage();