### PageNofM

Basic and Crystal syntax.

##### Returns

A text string

##### Action

PageNofM inserts the "Page [current page number] of [total page count]" as a field in a formula.

##### Typical uses

Use this function any time you want to determine the page number as compared to the total number of pages, at print time, and use that number in calculating formula results. For example, you can use this function when you want to print something on certain pages and not on others.

##### Examples

The following example is applicable to both Basic and Crystal syntax:

`PageNofM`

Creates a field containing the current page number and the total page count, which you can place anywhere on the page. Using this formula is the equivalent of using the PageNofM field from the Insert|Special Field menu.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com