GetRow – PB Docs 150

GetRow method (DataWindows)

Description

Reports the number of the current row in a DataWindow control
or DataStore object.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Web

Client control, server component

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

[PowerBuilder and Web DataWindow server component]

[Web DataWindow client control and Web ActiveX]

Argument

Description

dwcontrol

A reference to a DataWindow control,
DataStore, or the child DataWindow

Return Values

Returns the number of the current row in dwcontrol.
Returns 0 if no row is current and -1 if an error occurs.

If dwcontrol is null, in PowerBuilder
and JavaScript the method returns null.

note.png Current row not always displayed

The current row is not always a row displayed on the screen.
For example, if the cursor is on row 7 column 2 and the user uses
the scroll bar to scroll to row 50, the current row remains row
7 unless the user clicks row 50.

Examples

This statement returns the number of the current
row in dw_Employee:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x