Syntax 2 For RichTextEdit DataWindows

Description

Scrolls to the next instance of the document in a RichTextEdit DataWindow.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control


Syntax

PowerBuilder

integer rtename.ScrollNextRow ( )

Argument

Description

rtename

A reference to a DataWindow control in which you want to scroll to the next 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.

ScrollNextRow advances to the next instance of the RichTextEdit document. In contrast, repeated calls to ScrollNextPage advance through all the pages of the document instance and then on to the pages for the next row.

PowerBuilder RichTextEdit control

You can use the same syntax with any PowerBuilder RichTextEdit control. See the section called “ScrollNextRow” in PowerScript Reference.

Examples

This statement scrolls to the next instance of the RichText document in the DataWindow control dw_rpt. (Each document instance is associated with a row of data):

dw_rpt.ScrollNextRow()

See also

Scroll

ScrollNextPage

ScrollPriorPage

ScrollPriorRow