TxtPageNum Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:16

Description

Returns the numbers of the pages linked before (if parameter is true) or after (if parameter is false) for the current text.

Syntax

Page.TxtPageNum (bDirection)

bDirection

If TRUE, pages linked before current text, False = pages linked after.

Remarks

Returns error code.

Example

      Dim iLinkedTo As Integer = 0

      If Page.GetSelectedTxtId > 0 Then

        iNextPage = Page.TxtPageNum(False) ' check next page num

        iPrevPage = Page.TxtPageNum(True) ' check prev page num

        If iNextPage + iPrevPage = 0 Then

          iLinkedTo = 0

        Else

          iLinkedTo = 1

        End If

      End If

Context

Page designer