Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

RowCount – PB Docs 2019 – PowerBuilder Library

RowCount – PB Docs 2019

RowCount

method (DataWindows)

Description

Obtains the number of rows that are currently available in a
DataWindow control or DataStore. To determine the number of rows
available, the RowCount method checks the primary buffer.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

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

Return value

Returns the number of rows that are currently available in
dwcontrol, 0 if no rows are currently available, and -1 if an error
occurs.

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

Usage

The primary buffer for a DataWindow control or DataStore contains
the rows that are currently available for display or printing. These are
the rows counted by RowCount. The number of currently available rows
equals the total number of rows retrieved minus any deleted or filtered
rows plus any inserted rows. The deleted and filtered rows are stored in
the DataWindow’s delete and filter buffers.

Examples

This statement returns the number of rows currently available in
dw_Employee:

This example determines when the user has scrolled to the end of a
DataWindow control. It compares the row count with the DataWindow property
LastRowOnPage:

See also

DeleteRow

DeletedCount

Filter

FilteredCount

InsertRow

ModifiedCount

SetFilter

Update


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