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

ModifiedCount – PB Docs 2017 – PowerBuilder Library

ModifiedCount – PB Docs 2017

ModifiedCount

method (DataWindows)

Description

Reports the number of rows that have been modified but not updated
in a DataWindow or DataStore.

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 have been modified in the primary
buffer. Returns 0 if no rows have been modified or if all modified rows
have been updated in the database table. Returns -1 if an error
occurs.

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

Usage

ModifiedCount reports the number of rows that are scheduled to be
added or updated in the database table associated with a DataWindow or
DataStore. This includes rows in the primary and filter buffers.

A newly inserted row (with a status flag of New!) is not included in
the modified count until data is entered in the row (its status flag
becomes NewModified!).

The DeletedCount method counts the number of rows in the deleted
buffer. The RowCount method counts the total number of rows in the primary
buffer.

Examples

If five rows in dw_Employee have been modified but not updated in
the associated database table or filtered out of the primary buffer, the
following code sets ll_Rows equal to 5:

If any rows in dw_Employee have been modified but not updated in the
associated database table, this statement updates the database table
associated with the dw_employee DataWindow control:

See also

DeleteRow

DeletedCount

FilteredCount

Retrieve

RowCount

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