Obtains the number of the current page in a RichTextEdit control.
RichTextEdit controls
rtename.SelectedPage ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want the number of the current page |
Integer. Returns the number of the current page in rtename. If an error occurs, SelectedPage returns -1.
The current page in a RichTextEdit control is the page that contains the insertion point in text entry mode or the page currently being displayed in preview mode.
When the RichTextEdit shares data with a DataWindow, SelectedPage returns the page number within the document instance for the current row.
For more information about document instances, see DataSource.
This example returns the page number of the current page:
integer li_pagect
li_pagect = rte_1.SelectedPage()