Description
Scrolls to the prior instance of the document in a RichTextEdit DataWindow.
Applies to
Syntax
PowerBuilder
integer rtename.ScrollPriorRow ( )
Argument |
Description |
---|---|
rtename |
The name of the DataWindow control in which you want to scroll to the prior document instance. Each instance is associated with a DataWindow row. 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.
Usage
A DataWindow control with a RichText DataWindow object has multiple instances of the RichText document, where each instance is associated with one row of retrieved data.
ScrollPriorRow goes to the prior instance of the RichTextEdit document. In contrast, repeated calls to ScrollPriorPage pages back through all the pages of the document instance and then back to the pages for the prior row.
PowerBuilder RichTextEdit control
You can use the same syntax with any PowerBuilder RichTextEdit control. See the section called “ScrollPriorRow” in PowerScript Reference.
Examples
This statement scrolls to the prior instance of the RichText document in the DataWindow control dw_1. (Each document instance is associated with a row of data):
dw_rpt.ScrollPriorRow()
See also