PGetTOCIndexID

Gets the story ID of both the table of contents and index stories in the current publication.


Query results

unsigned long nTOCID;
PageMaker identifier for table of contents story
-1 if publication does not contain a table of contents story
unsigned long nIndexID;
PageMaker identifier for index story
-1 if publication does not contain an index
Check book list. Large books are generally broken into several publications. To locate the table of contents and index, you may need to query the main publication for the book list and then query each publication listed for the table of contents and index. Generally the first publication in a book list contains the table of contents and the last publication contains the index.

A publication can contain only one table of contents and one index. However, each publication in a book list may contain its own table of contents and index.

Not valid for PageMaker 5.0 or earlier. This query works only with PageMaker 5.0a (or later) for the Macintosh and PageMaker 5.x (or later) for Windows. Always check the return from PGetTOCIndexID. If PGetTOCIndexID throws a RC_CQ_BAD_CMD exception, the PageMaker version is earlier than 5.0a so PageMaker does not recognize this query.


See also

The PGetBook query


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

Comments or suggestions? Contact Adobe Developer Support