Description
Scrolls to the next page of the document in a RichTextEdit DataWindow.
Applies to
Syntax
PowerBuilder
integer rtedwname.ScrollNextPage ( )
Argument |
Description |
---|---|
rtedwname |
A reference to a DataWindow control. The DataWindow object in the DataWindow control must be a RichTextEdit DataWindow. |
Return value
Returns 1 if it succeeds and -1 if an error occurs. If rtedwname is null, in PowerBuilder and JavaScript the method returns null.
Usage
A RichText DataWindow contains multiple instances of the document, one instance for each row. When the last page of the document for one row is visible, calling ScrollNextPage advances to the first page for the next row.
PowerBuilder RichTextEdit control
You can use the same syntax with a PowerBuilder RichTextEdit control. See the section called “ScrollNextPage” in PowerScript Reference.
Examples
This statement scrolls to the next page of the RichText document in the DataWindow control dw_rpt. If there are multiple instances of the document, it can scroll to the next instance:
dw_rpt.ScrollNextPage()
See also