PGetPageID

Gets the PageMaker internal ID for the specified page in the current publication.


Query constructor

PGetPageID(short nPageNumber);
Specify a page number in the publication.


Query results

This query returns an unsigned long containing the PageMaker internal ID for the specified page.
Page ID stays with page. While the number of a page may change (if you insert or delete a page), its ID remains the same: A page is independent of its page number.

If you assign private data to a page and the page is subsequently renumbered, you can still access the private data using the page ID.

Example.

PNew(20); // create new 20 page pub
PGetPageID pageID(15);
// expected reply 17
PRemovePages(13, 14);
// page 15 becomes page 13
PGetPageID pageID2(15);
// expected reply 19


See also

The PGetPageNumber, PGetPageNumberByID, and PGetPageNumbers queries


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support