Insert a Computed Field for the Current Date or Page Number

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.

  1. Click the Compute control in the Toolbox.
  2. Select today() or page() from the function list in the Modify Expression dialog box.
  3. 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()