SelectedPage
PowerScript function
Description
Obtains the number of the current page in a RichTextEdit
control.
Applies to
RichTextEdit controls
Syntax
|
1 |
rtename.SelectedPage ( ) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control in which you want the |
Return value
Integer.
Returns the number of the current page in rtename. If an error
occurs, SelectedPage returns -1.
Usage
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.
Examples
This example returns the page number of the current page:
|
1 2 |
integer li_pagect li_pagect = rte_1.SelectedPage() |
See also