Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Page – PB Docs 2022 – PowerBuilder Library

Page – PB Docs 2022

Page

DataWindow expression function

Description

Gets the number of the current page.

Syntax

Return value

Long. Returns the number of the current page.

Calculating the page count

The vertical size of the paper less the top and bottom margins is
used to calculate the page count. When the print orientation is
landscape, the vertical size of the paper is the shorter dimension. If
the DataWindow object is not set to print preview, then the size of the
control determines the page number.

When Page() is in the header, it uses the first row currently
visible on the page to determine the page number. When it is in the
footer, it uses the last row currently visible. Therefore, it is
possible for the values to be different.

Examples

This expression returns the number of the current page:

In the DataWindow object’s footer band, this expression for a
computed field displays a string showing the current page number and the
total number of pages in the report. The result has the format Page n of
total:

See also

PageAbs

PageAcross

PageCount

PageCountAcross


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x