PowerBuilder provides a quick way to create computed fields that summarize values in the detail band, display the current date, or show the current page number.
The functions for the current date and page number are available in the Modify Expression dialog box.
- Click the Compute control in the Toolbox.
- Select today() or page() from the function list in the Modify Expression dialog box.
- Click in the DataWindow object where you want the field to appear.
If you want to display Page n of n, create the expression: 'Page ' + page() + ' of ' + pageCount()