Hi,
iPageNum do it?
Returns or initializes the number of the page currently printed.
Note: The iPageNum function can be used to force the number of the first page to a value different than 1.
// Print the page number
iPrint(iXPos(200)+ iPageNum ())
// Force the page number to 10
iPageNum(10)
iEndPrinting