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