DefaultBookPageNumber

This function assigns the correct page number to the first page of a DCI in the DCI book. The function returns zero if the operation is successful, or a non-zero error message number. The message number (message_topic_id) is used by the Maintain DCI Books to display the appropriate error message from the message_topics table. It uses the TrimPageNumber function and has these input parameters:

  • First page number of the previous DCI in the DCI book
  • Numbering scheme of the previous DCI
  • Number of expected pages

The function's one output parameter corresponds to the default page number that represents the first page number of a DCI in the DCI book.